Skip to content

MeterProvider should provide a method to update the resource #5876

@jsumners-nr

Description

@jsumners-nr

constructor(options?: MeterProviderOptions) {
this._sharedState = new MeterProviderSharedState(
options?.resource ?? defaultResource()
);

The MeterProvider implementation accepts a Resource instance, but it does not provide a way to update that resource after construction. I definitely have use cases for updating the resource post-construction, e.g. to update the attributes attached to it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions