open-telemetry / open-telemetry/opentelemetry-python
Documentation request - python opentelemetry-propagator-b3
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.6k
- Forks
- 1k
- Avg merge
- 4d 15h
- Merged PRs (30d)
- 19
Description
Hi,
I'm looking to use python opentelemetry-propagator-b3 in order to integrate create custom traces with service mesh traces generated by Istio.
I think in order to do this I need to propagate the b3 headers or assign them into my OpenTelemetry span somehow, but the b3 propagator doesn't do anything when I try the below:
from opentelemetry.propagators.b3 import B3MultiFormat
# https://opentelemetry.io/docs/instrumentation/python/getting-started/#configure-your-http-propagator-b3-baggage
# use B3MultiFormat since thats what istio sends?
set_global_textmap(B3MultiFormat())
Any suggestions or possibly a quick example I could refer to? Thanks!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked OpenTelemetry Python getting-started page and the B3MultiFormat example shown in the issue. Clarify how to configure B3 propagation for Istio-generated headers and document a minimal working example; done means a user can follow the example to integrate the traces.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100