Skip to content

Conversation

@billrich2001
Copy link

@billrich2001 billrich2001 commented Nov 7, 2025

Fix cosmetic logging bug: ensure OpenTelemetry TraceID/SpanID are logged as hex strings instead of byte slices. Minimal change: call .String() on both.\n\nValidation: ran go test ./... successfully.\n\nAffected file: contrib/opentelemetry/tracing_interceptor.go

closes #2103

@billrich2001 billrich2001 requested a review from a team as a code owner November 7, 2025 20:05
@CLAassistant
Copy link

CLAassistant commented Nov 7, 2025

CLA assistant check
All committers have signed the CLA.

@billrich2001
Copy link
Author

Added note.

Was able to recreate using slog and otel traceid on Go 1.21

@Quinn-With-Two-Ns
Copy link
Contributor

For loggin SpanID and TraceID with slog you should be setting up https://github.com/open-telemetry/opentelemetry-go-contrib/tree/main/bridges/otelslog or an alternative

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.

Cosmetic bug in logger

4 participants