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

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

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

@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

@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.

None yet

4 participants