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 returning Sentry trace header from Span. #1217

Merged
merged 3 commits into from
Feb 2, 2021
Merged

Conversation

maciejwalkowiak
Copy link
Contributor

@maciejwalkowiak maciejwalkowiak commented Feb 1, 2021

📜 Description

Fix returning Sentry trace header from Span.

💡 Motivation and Context

SpanId for Sentry header should be taken from the Span itself and not from the parent transaction.

Fix #1216

💚 How did you test it?

Unit tests.

📝 Checklist

  • I reviewed the submitted code
  • I added tests to verify the changes
  • I updated the docs if needed
  • No breaking changes

SpanId for Sentry header should be taken from the Span itself and not from the parent transaction.
@maciejwalkowiak
Copy link
Contributor Author

I'll do first a test if this renders correctly in the UI now.

Create trace header from the current span, not from the parent.
@maciejwalkowiak
Copy link
Contributor Author

After fix, the "Child Span" button is shown. image

@marandaneto marandaneto merged commit 05a4c35 into main Feb 2, 2021
@marandaneto marandaneto deleted the fix-sentry-header branch February 2, 2021 08:24
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.

Span.toSentryTrace() should use its own spanId
3 participants