-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adds a function `set_attribute` to `OpenTelemetrySpanExt` to allow setting attributes directly on the OpenTelemetry `SpanBuilder`. This allows users to set more than the tracing maximum of 32 fields. There was a workaround I came up with without using the function involving wrapping the `Registry` in an Arc and accessing `OtelData` directly, but that led to [this bug in tracing-subscriber](tokio-rs/tracing#2668).
- Loading branch information
Showing
1 changed file
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters