Skip to content

Conversation

@wlawt
Copy link
Contributor

@wlawt wlawt commented Oct 20, 2025

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 {
Copy link
Contributor Author

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

Copy link
Contributor Author

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 {
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants