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

feat(tracing without performance): add ContinueTrace #752

Conversation

greywolve
Copy link
Contributor

Add ContinueTrace as a method on the hub. This is how other SDKs that have to deal with concurrency tend to do it, ie Java.

…etsentry#745)

* feat(tracing without performance): add propagation context to scope

* remove redundant dynamic context assignment

* more tests
Add ContinueTrace as a method on the hub. This is how other SDKs that
have to deal with concurrency tend to do it, ie Java.
@@ -400,6 +401,31 @@ func (scope *Scope) ApplyToEvent(event *Event, hint *EventHint) *Event {
}
}

// Apply the trace context to errors if there is a Span on the scope. If
// there isn't then fall back to the propagation context.
if event.Type != transactionType {
Copy link
Member

Choose a reason for hiding this comment

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

Could we also use this for transactions, so it's centralized?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, looking at the code now that makes sense. I'll make the change. :)

@ribice ribice changed the base branch from feat_tracing_without_performance to master May 15, 2024 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants