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
Since this is not how instrumentation is actually suppressed any more, this can lead to bugs.
There are also places checking/setting the key 'manually' instead of via the utility functions, which also seems error-prone.
Additionally, if it's allowed for a user to have different versions of opentelemetry-instrumentation and opentelemetry-instrumentation-httpx (or another specific library instrumentation package) installed, then the util functions suppress_instrumentation and is_instrumentation_enabled should also check the plain string key "suppress_instrumentation" for backward compatibility.
The text was updated successfully, but these errors were encountered:
Searching for
suppress_instrumentation
(https://github.com/search?q=repo%3Aopen-telemetry%2Fopentelemetry-python-contrib%20suppress_instrumentation&type=code) reveals places using the old plain string"suppress_instrumentation"
context key, e.g:opentelemetry-python-contrib/instrumentation/opentelemetry-instrumentation-httpx/src/opentelemetry/instrumentation/httpx/__init__.py
Line 350 in f4f3042
Since this is not how instrumentation is actually suppressed any more, this can lead to bugs.
There are also places checking/setting the key 'manually' instead of via the utility functions, which also seems error-prone.
Additionally, if it's allowed for a user to have different versions of
opentelemetry-instrumentation
andopentelemetry-instrumentation-httpx
(or another specific library instrumentation package) installed, then the util functionssuppress_instrumentation
andis_instrumentation_enabled
should also check the plain string key"suppress_instrumentation"
for backward compatibility.The text was updated successfully, but these errors were encountered: