open-telemetry / open-telemetry/opentelemetry-python

Documentation request - python opentelemetry-propagator-b3

Open
#2,667 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.