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

@github-actions
Copy link

github-actions bot commented Dec 3, 2025

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label Dec 3, 2025
@wlawt wlawt closed this Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants