-
Notifications
You must be signed in to change notification settings - Fork 85
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
Outdated docs: SpanKind
doesn't implement Display
anymore
#151
Comments
Thanks for the report. Want to send a PR to change the |
I don't mind sending PR, but I'm not sure that changing I don't know what's the best way to address that. The easiest way is to update doc so it directly uses strings: |
This was removed in open-telemetry/opentelemetry-rust#758, which asserts the formatting is Jaeger-specific. Might be best to open an issue upstream to discuss further? |
I don't know what's the best way to proceed tbh since I'm not familiar with otel at all. If the formatting is indeed not a part of the spec, it makes sense to me to replace the SpanKind with the string, i.e. write |
I don't see an https://opentelemetry.io/docs/specs/semconv/attributes-registry/otel/
https://opentelemetry.io/docs/specs/otel/trace/api/#spankind But without an explicit way to |
It does make sense to me! |
However, looking at the code, it might be not as trivial. Span kind is used here: tracing-opentelemetry/src/tracer.rs Lines 82 to 89 in 7f4409a
if we remove it, |
I was only talking about removing it from the docs, which I don't think would affect that usage? |
I think the example should be changed to It's a bit unfortunate that this is the example provided as span kind is not a semantic convention, it is part of the span itself. This is just the way |
Sounds like you have informed opinions, would you be able to submit a PR for this? 👍 |
Bug Report
The crate docs suggest setting span kind as
"otel.kind" = %SpanKind::Client
, however, it doesn't compile asSpanKind
doesn't implementDisplay
sinceopentelemetry v0.18
(you can see that display is implemented in v0.17, but in v0.18 it's gone).tracing-opentelemetry/src/lib.rs
Lines 34 to 37 in 9462de6
Version
v0.24.0, rendered on docs.rs
The text was updated successfully, but these errors were encountered: