opentelemetry-python icon indicating copy to clipboard operation
opentelemetry-python copied to clipboard

get_tracer Is Missing Required Attributes Arg

Open lzchen opened this issue 1 year ago • 0 comments

Describe your environment

OS: (e.g, Ubuntu) Python version: (e.g., Python 3.8.10) SDK version: (e.g., 1.25.0) API version: (e.g., 1.25.0)

What happened?

Same as https://github.com/open-telemetry/opentelemetry-python/issues/3695 but with get_tracer

Steps to Reproduce

In TracerProvider, the method get_tracer does not have an argument attributes.

Expected Result

Expected to see the spec fully implemented. Being able to specify crosscutting attributes at init time would be extremely valuable.

Actual Result

The final arg for get_meter is schema_url, attributes is not present:https://github.com/open-telemetry/opentelemetry-python/blob/main/opentelemetry-api/src/opentelemetry/trace/init.py#L191

Additional context

No response

Would you like to implement a fix?

None

lzchen avatar Jul 02 '24 15:07 lzchen