-
Notifications
You must be signed in to change notification settings - Fork 748
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
opentelemetry: Update otel to 0.17.0 #1853
Changes from 6 commits
994de00
e2794dd
ab45c88
e94276f
69b2805
705b8e1
e087a21
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -109,3 +109,15 @@ mod tracer; | |||||
pub use span_ext::OpenTelemetrySpanExt; | ||||||
pub use subscriber::{subscriber, OpenTelemetrySubscriber}; | ||||||
pub use tracer::PreSampledTracer; | ||||||
|
||||||
/// Per-span OpenTelemetry data tracked by this crate. | ||||||
/// | ||||||
/// Useful for implementing [PreSampledTracer] in alternate otel SDKs. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit
Suggested change
|
||||||
#[derive(Debug, Clone)] | ||||||
pub struct OtelData { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Am I correct that this needs to be public because it's used in the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good point, fields need to be pub for althernate sdk implementations. Will fix. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added quick comment as well to clarify purpose a bit. Should be opaque to everyone who is not trying to implement |
||||||
/// The parent otel `Context` for the current tracing span. | ||||||
pub parent_cx: opentelemetry::Context, | ||||||
|
||||||
/// The otel span data recorded during the current tracing span. | ||||||
pub builder: opentelemetry::trace::SpanBuilder, | ||||||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: should this be