Skip to content

Structured tracing on the client#205

Merged
einarmo merged 1 commit intomasterfrom
client-tracing
Mar 4, 2026
Merged

Structured tracing on the client#205
einarmo merged 1 commit intomasterfrom
client-tracing

Conversation

@einarmo
Copy link
Copy Markdown
Contributor

@einarmo einarmo commented Mar 4, 2026

This adds some basic structured tracing on the client. This is useful both larger applications, in which case you can use a structured tracing format like opentelemetry to create structured spans with timing info, contextualized logs, etc.

It also serves as more detailed debug logging on simpler clients, which can help with debugging.

Diff looks pretty fat, but it really is just adding spans and making sure to enter/exit them as appropriate. We need to avoid being in spans across await points, so that adds some nesting in a few places.

This adds some basic structured tracing on the client. This is useful
both larger applications, in which case you can use a structured
tracing format like opentelemetry to create structured spans with timing
info, contextualized logs, etc.

It also serves as more detailed debug logging on simpler clients, which
can help with debugging.
@einarmo einarmo merged commit d6a2691 into master Mar 4, 2026
6 checks passed
@einarmo einarmo deleted the client-tracing branch March 4, 2026 09:56
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