Skip to content

tracing otel link#1387

Merged
whutchinson98 merged 2 commits intomainfrom
hutch/tracing-otel-link
Feb 6, 2026
Merged

tracing otel link#1387
whutchinson98 merged 2 commits intomainfrom
hutch/tracing-otel-link

Conversation

@whutchinson98
Copy link
Copy Markdown
Member

Datadog does not automatically link our OTEL logging with our normal tracing logs. This should enable this.

@claude
Copy link
Copy Markdown
Contributor

claude bot commented Feb 6, 2026

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

Comment on lines +71 to +73
trace_bytes[8..16]
.try_into()
.expect("slice is always 8 bytes"),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

As much as I would like to believe this is true, dd will probably change this and then our app will start to crash

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We should probably return early if this fails

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This can't fail. trace id to bytes always returns this. so this will always be valid

/// Return the representation of this trace id as a byte array.
pub const fn to_bytes(self) -> [u8; 16] {
self.0.to_be_bytes()
}

@whutchinson98 whutchinson98 merged commit 8072e5e into main Feb 6, 2026
47 checks passed
@whutchinson98 whutchinson98 deleted the hutch/tracing-otel-link branch February 6, 2026 21:40
dev-rb pushed a commit that referenced this pull request Feb 6, 2026
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.

2 participants