-
Notifications
You must be signed in to change notification settings - Fork 721
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
tracing-opentelemetry: Docs for otel.kind are unclear about capitalisation #1209
Comments
Completely agree -- the equivalent Rust enum is https://github.com/open-telemetry/opentelemetry-rust/blob/45da275bd4d66cf8816eb9f3c7c15961ae2595f0/opentelemetry/src/trace/span.rs#L168-L238. Maybe the documentation could be updated to reflect this as best practice? |
cc @jtescher |
Yeah these docs should be updated to use the enum. E.g. |
This patch resolves the field value capitalization ambiguity currently in `otel.kind` by instead recommending an enum value. This also brings type safety to the value, further reducing the risk of typos and other misuse. Resolves #1209
This patch resolves the field value capitalization ambiguity currently in `otel.kind` by instead recommending an enum value. This also brings type safety to the value, further reducing the risk of typos and other misuse. Resolves #1209
This patch resolves the field value capitalization ambiguity currently in `otel.kind` by instead recommending an enum value. This also brings type safety to the value, further reducing the risk of typos and other misuse. Resolves #1209
This patch resolves the field value capitalization ambiguity currently in `otel.kind` by instead recommending an enum value. This also brings type safety to the value, further reducing the risk of typos and other misuse. Resolves tokio-rs#1209
Bug Report
Version
Git version https://github.com/tokio-rs/tracing/blob/705613c3ef04e334b90a49a60676ff7de8e495bd/tracing-opentelemetry/src/lib.rs
Description
The documentation is unclear / inconsistent about the capitalisation of values for the
otel.kind
field.tracing/tracing-opentelemetry/src/lib.rs
Lines 25 to 28 in 705613c
The example code, a few lines below, at
tracing/tracing-opentelemetry/src/lib.rs
Line 36 in 705613c
The test code in
tracing/tracing-opentelemetry/src/layer.rs
Lines 660 to 682 in 705613c
The actual implementation appears to be case insensitive,
tracing/tracing-opentelemetry/src/layer.rs
Lines 87 to 101 in 705613c
The text was updated successfully, but these errors were encountered: