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