open-telemetry / open-telemetry/opentelemetry-python

Is it possible to log trace ID in gRPC Python Client?

Open
#2,281 0 comments 3 reactions 0 assignees View on GitHub

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.