You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
System metric instrumentation is not functional if configuration on which metrics to be exported is explicitly provided. As a minimal example, this code
Traceback (most recent call last):
File ".../test.py", line 15, in <module>
SystemMetricsInstrumentor(config=configuration).instrument()
File ".../lib/python3.10/site-packages/opentelemetry/instrumentation/instrumentor.py", line 51, in __new__
cls._instance = object.__new__(cls, *args, **kwargs)
TypeError: object.__new__() takes exactly one argument (the type to instantiate)
I am happy to look into fixing this. Removing *args and **kwargs in opentelemetry/instrumentation/instrumentor.py:51 actually solves the issue here but I'd like to understand the implications as this implies changing the interface class.
The text was updated successfully, but these errors were encountered:
System metric instrumentation is not functional if configuration on which metrics to be exported is explicitly provided. As a minimal example, this code
results in
I am happy to look into fixing this. Removing
*args
and**kwargs
inopentelemetry/instrumentation/instrumentor.py:51
actually solves the issue here but I'd like to understand the implications as this implies changing the interface class.The text was updated successfully, but these errors were encountered: