Skip to content

[Metrics API/SDK] Add InstrumentationScope attributes in MeterProvider::GetMeter() #2033

@lalitb

Description

@lalitb

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

Get a Meter

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 metric exporters - OTLP, OStream, Prometheus(?) 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

Relationships

None yet

Development

No branches or pull requests

Issue actions