Skip to content

fix: Dont require transaction to be on the scope to be delivered correctly #2353

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

Merged
merged 3 commits into from
Dec 17, 2019

Conversation

kamilogorek
Copy link
Contributor

@kamilogorek kamilogorek commented Dec 12, 2019

Without this, every transaction has to be attached to the scope in order for this block to be called:

if (this._span) {
event.contexts = event.contexts || {};
event.contexts.trace = this._span.getTraceContext();
}

Sending manually created transaction would end up with: Error while sending event: SentryError: HTTP Error (400): invalid transaction event: trace context hard-required for transaction events

@kamilogorek kamilogorek requested review from billyvg and HazAT December 12, 2019 00:16
@getsentry-bot
Copy link
Contributor

getsentry-bot commented Dec 12, 2019

Messages
📖 ✅ TSLint passed
📖

@sentry/browser bundle gzip'ed minified size: (ES6: 15.5273 kB) (ES5: 16.5215 kB)

Generated by 🚫 dangerJS against 3541a04

@kamilogorek kamilogorek force-pushed the no-scope-trace-context branch from 95b3d2d to 703c5b4 Compare December 12, 2019 00:48
@kamilogorek kamilogorek force-pushed the no-scope-trace-context branch from 703c5b4 to 2e521c2 Compare December 12, 2019 00:50
@dashed
Copy link
Member

dashed commented Dec 15, 2019

@kamilogorek any chance to add a test for this?

@kamilogorek
Copy link
Contributor Author

You got it @dashed

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.

4 participants