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

'NoOpMeterProvider' object has no attribute 'shutdown'

Open luccabb opened this issue 1 year ago • 0 comments

Describe your environment

OS: CentOS Python version: Python 3.10 SDK version: 1.26.0 API version: 1.26.0

What happened?

following log lines shows the error:

meter_provider.shutdown()
AttributeError: 'NoOpMeterProvider' object has no attribute 'shutdown'

Steps to Reproduce

from opentelemetry.metrics import NoOpMeterProvider

noop_meter = NoOpMeterProvider()
noop_meter.shutdown()

Expected Result

expected to see a noop shutdown

Actual Result

exits with error

Additional context

No response

Would you like to implement a fix?

None

luccabb avatar Aug 30 '24 18:08 luccabb