Skip to content

feat: otel thread-level context sharing#269

Draft
yannham wants to merge 4 commits into
mainfrom
yannham/otel-thread-context
Draft

feat: otel thread-level context sharing#269
yannham wants to merge 4 commits into
mainfrom
yannham/otel-thread-context

Conversation

@yannham

@yannham yannham commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

This PR publishes the current opentelemetry-rust context as an OTel thread-level context as well. The changes rely for now of yet unmerged changes in opentelemetry-rust and libdatadog.

Since the patch to opentelemetry-rust was developed from a recent version, there's also a bit of unrelated boilerplate changes corresponding to upgrading to the latest opentelemetry-rust.

Motivation

Adding support for the thread-context level OTEP will enhance the eBPF full host profiler with contexts.

Additional Notes

@datadog-prod-us1-6

datadog-prod-us1-6 Bot commented Jun 26, 2026

Copy link
Copy Markdown

Pipelines

Fix all issues with BitsAI

⚠️ Warnings

🚦 24 Pipeline jobs failed

Lint | Valid LICENSE-3rdparty.csv   View in Datadog   GitHub Actions

Lint | clippy #ubuntu-latest 1.87.0   View in Datadog   GitHub Actions

Lint | clippy #ubuntu-latest nightly-2026-04-07   View in Datadog   GitHub Actions

View all 24 failed jobs.

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 8ff4bda | Docs | Datadog PR Page | Give us feedback!

return None;
}
let trace_id = span_ctx.trace_id().to_bytes();
let span_id = span_ctx.span_id().to_bytes();

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can these be moved into the init part? They feel unnecessary if the view is already initialized.

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