Skip to content

fix(core): Fix telemetry option logic#128

Merged
lforst merged 4 commits into
mainfrom
lforst-fix-telemetry-logic
Nov 23, 2022
Merged

fix(core): Fix telemetry option logic#128
lforst merged 4 commits into
mainfrom
lforst-fix-telemetry-logic

Conversation

@lforst
Copy link
Copy Markdown

@lforst lforst commented Nov 23, 2022

Fixes #129

  • Introduces a custom transport that only sends telemetry events to our Sentry instance when Sentry CLI has determined that the target URL for the source maps is the Sentry SaaS URL. (this is due to PII reasons)
  • Refactors usage of the telemetry option so we don't mutate it.
  • Gets rid of manually mutating client options
  • Reduces noise of log messages and breadcrumbs sent to our Sentry instance by not logging debug log statements - these are for our users to debug

@lforst lforst requested a review from Lms24 November 23, 2022 12:10
@lforst lforst marked this pull request as ready for review November 23, 2022 12:10
Comment on lines +145 to +147
if (telemetry === false) {
return false;
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, let's also check that dryRun isn't isn't enabled (or return false if it is)

@lforst lforst enabled auto-merge (squash) November 23, 2022 12:55
@lforst lforst merged commit f34219f into main Nov 23, 2022
@lforst lforst deleted the lforst-fix-telemetry-logic branch November 23, 2022 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix telemetry option

2 participants