Skip to content

[Trace API/SDK] Add InstrumentationScope attributes in TracerProvider::GetTracer() #2032

@lalitb

Description

@lalitb

As mentioned in the specs, it should be possible to optionally pass the InstrumentationScope attributes while creating/fetching a Tracer through TracerProvider.

Get a Tracer

This API MUST accept the following parameters:
 * name (required)
 * version (optional)
 * [since 1.4.0] schema_url (optional)
 * since 1.13.0] attributes (optional)

With #2004, the InstrumentationScope class already support storing the attributes.

The relevant span exporters - OTLP, InMemory, and OStream should be modified to support sending/dumping these attributes.

Also this would be an API/ABI breaking change (modifying/overloading the virtual method in the API), so need to be planned accordingly.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions