Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PLAT-9748] enabledReleaseStages #55

Merged
merged 6 commits into from
Mar 17, 2023
Merged

Conversation

gingerbenw
Copy link
Member

@gingerbenw gingerbenw commented Mar 15, 2023

Goal

Prevent span delivery when enabledReleaseStages is provided and does not include the current releaseStage

Testing

Added unit tests for validation function and BrowserProcessor delivery prevention

@gingerbenw gingerbenw marked this pull request as ready for review March 15, 2023 15:37
packages/core/lib/validation.ts Outdated Show resolved Hide resolved
packages/core/lib/config.ts Show resolved Hide resolved
packages/platforms/browser/tests/BrowserProcessor.test.ts Outdated Show resolved Hide resolved
packages/platforms/browser/tests/BrowserProcessor.test.ts Outdated Show resolved Hide resolved
packages/platforms/browser/tests/BrowserProcessor.test.ts Outdated Show resolved Hide resolved
@@ -5,6 +5,7 @@ export function createConfiguration (overrides: Partial<InternalConfiguration> =
apiKey: 'abcdefabcdefabcdefabcdefabcdef12',
endpoint: '/traces',
releaseStage: 'production',
enabledReleaseStages: ['production'],
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should default to null, since that's the real default

We had issues in the notifier where we allowed enabledBreadcrumbTypes to be null, but didn't really test it and it was pretty broken: bugsnag/bugsnag-js#1466 & bugsnag/bugsnag-js#1467

@gingerbenw gingerbenw merged commit 40b8157 into next Mar 17, 2023
@gingerbenw gingerbenw deleted the PLAT-9748/enabled-release-stages branch March 17, 2023 09:34
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.

2 participants