open-telemetry / open-telemetry/opentelemetry-python
Is it possible to log trace ID in gRPC Python Client?
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.6k
- Forks
- 1k
- Avg merge
- 4d 15h
- Merged PRs (30d)
- 19
Description
Hi,
In the server I can issue the below call to get the trace ID, is there a way to do this in the client where the clients are auto generated by grpc?
opentelemetry.trace.get_current_span().context.trace_id
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 by reviewing the OpenTelemetry Python gRPC client instrumentation and the opentelemetry.trace.get_current_span().context.trace_id entry point mentioned in the issue. Determine whether autogenerated gRPC clients expose the active trace ID and define the client-side logging behavior needed to support it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- grpc, python
- Domain
- distributed-systems, observability
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100