Skip to content

fix parent span id for tracing events #71

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 1 commit into from
Jun 26, 2025
Merged

Conversation

davidhewitt
Copy link
Contributor

Addresses the FIXME, and based on the test diff here this actually fixed a legitimate bug 🤦‍♂️

Comment on lines +100 to +105
let event_span = ctx.event_span(event).and_then(|span| ctx.span(&span.id()));
let mut event_span_extensions = event_span.as_ref().map(|s| s.extensions_mut());

let context = if let Some(otel_data) = event_span_extensions
.as_mut()
.and_then(|e| e.get_mut::<OtelData>())
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Need let chains already...

@davidhewitt davidhewitt enabled auto-merge (squash) June 26, 2025 17:26
@davidhewitt davidhewitt merged commit 00d021f into main Jun 26, 2025
7 checks passed
@davidhewitt davidhewitt deleted the dh/fix-tracing-event branch June 26, 2025 17:26
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@davidhewitt davidhewitt mentioned this pull request Jun 26, 2025
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.

2 participants