-
Notifications
You must be signed in to change notification settings - Fork 77
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
[DRAFT - DO NOT MERGE] Basic OpenTelemetry integration #1201
base: main
Are you sure you want to change the base?
Conversation
508eb58
to
76af80a
Compare
#[cfg(feature = "otel-tracing")] | ||
pub span_context: opentelemetry::trace::SpanContext, |
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.
This is gross and I need something better.
impl std::fmt::Display for HandlerError { | ||
fn fmt(&self, f: &mut Formatter) -> FmtResult { | ||
write!( | ||
f, | ||
"{}", | ||
match self { | ||
Self::Handler { ref message, .. } => message, | ||
Self::Dropshot(ref e) => &e.external_message, | ||
} | ||
) | ||
} | ||
} | ||
|
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.
I think this is for tokio-tracing and could potentially be dropped or separated into a dedicated commit. Really all the tokio-tracing bits should be a separate commit now that I think about it.
76af80a
to
04c7da7
Compare
04c7da7
to
1a5061c
Compare
c86d59b
to
1db15e7
Compare
OpenTelemetry for Dropshot
This is still very much a rough draft, but I want it to be clearly available for anyone interested.
Checklist of things that are needed (note that much of it is currently incomplete):
Known Issues
dtrace.conf(24) References
Slides:
https://docs.google.com/presentation/d/1AW_ugVrmkXDTROgPbEt7bCLrLhFo8-z13PoJAdfPO78/
Raw video link:
https://www.youtube.com/watch?v=KQN1t2qlhaw&t=11760s
Screenshot