Skip to content

Fix returning Sentry trace header from Span.#1217

Merged
marandaneto merged 3 commits into
mainfrom
fix-sentry-header
Feb 2, 2021
Merged

Fix returning Sentry trace header from Span.#1217
marandaneto merged 3 commits into
mainfrom
fix-sentry-header

Conversation

@maciejwalkowiak

@maciejwalkowiak maciejwalkowiak commented Feb 1, 2021

Copy link
Copy Markdown
Contributor

📜 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
Copy Markdown
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
Copy Markdown
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