Skip to content
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.

Commit

Permalink
fix(): correct insert token + remove throw
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Willis (HE / HIM) committed May 24, 2022
1 parent 8122d57 commit 6705d00
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ jobs:
# uses: cschleiden/replace-tokens@4f7e3d67f3ff2317ae650842145cdbaefba65189
uses: cschleiden/[email protected]
with:
tokenPrefix: $
tokenSuffix: $
files: '["**/usage-analytics.ts"]'
env:
ANALYTICS_CODE: ${{secrets.ANALYTICS_CODE}}
Expand Down
3 changes: 1 addition & 2 deletions src/services/usage-analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export function initAnalytics() {
try {
// check flag first
if (getFlag("analytics") === true) {
setup().start()
setup("#{ANALYTICS_CODE}#")
.setAutoDependencyCorrelation(false)
.setAutoCollectRequests(false)
.setAutoCollectPerformance(false, false)
Expand All @@ -19,7 +19,6 @@ export function initAnalytics() {
}
catch (err) {
console.error("Error initializing analytics", err);
throw new Error(`Error initializing analytics: ${err}`);
}
}

Expand Down

0 comments on commit 6705d00

Please sign in to comment.