-
Couldn't load subscription status.
- Fork 21
feat: enable datadog apm tracing #32
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
base: master
Are you sure you want to change the base?
Conversation
crates/ingress-rpc/src/service.rs
Outdated
| if let Err(e) = self.queue.publish(&bundle, sender).await { | ||
| let span = | ||
| span!(tracing::Level::INFO, "span_publish", transaction = %transaction.tx_hash()); | ||
| if let Err(e) = self.queue.publish(&bundle, sender).instrument(span).await { |
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 can see the span! info logs but they don't show up as traces
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.
hoping that opentelemetry_datadog is the fix to sending traces to the agent properly ... will verify
| #[derive(Debug, Clone)] | ||
| struct AgentBasedSampler; | ||
|
|
||
| impl ShouldSample for AgentBasedSampler { |
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.
with this addition, it now brings back the error:
Cannot drop a runtime in a context where blocking is not allowed. This happens when a runtime is dropped from within an asynchronous context.
prior to implementing ShouldSample trait, it didn't panic.
in both scenarios, traces are still not showing up in APM though
related: #22 , #29
Overview
Distributed tracing will let us visualize in a flamegraph format of where a txn spends the most time in TIPS.
This would be particularly helpful in terms of optimizing certain TIPS components.
Resources
References
TODOs