-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Select instrumentation libraries via OTEL_DOTNET_AUTO_*_INSTRUMENTATION_ENABLED
#1633
Comments
OTEL_INSTRUMENTATION_[NAME]_ENABLED
and OTEL_INSTRUMENTATION_COMMON_DEFAULT_ENABLED
OTEL_INSTRUMENTATION_[NAME]_ENABLED
and OTEL_INSTRUMENTATION_COMMON_DEFAULT_ENABLED
OTEL_INSTRUMENTATION_[NAME]_ENABLED
and OTEL_INSTRUMENTATION_COMMON_DEFAULT_ENABLED
OTEL_INSTRUMENTATION_[NAME]_ENABLED
and OTEL_INSTRUMENTATION_COMMON_DEFAULT_ENABLED
OTEL_INSTRUMENTATION_[NAME]_ENABLED
and OTEL_INSTRUMENTATION_COMMON_DEFAULT_ENABLED
OTEL_INSTRUMENTATION_[NAME]_ENABLED
and OTEL_INSTRUMENTATION_COMMON_DEFAULT_ENABLED
OTEL_INSTRUMENTATION_[NAME]_ENABLED
and OTEL_INSTRUMENTATION_COMMON_DEFAULT_ENABLED
OTEL_INSTRUMENTATION_[NAME]_ENABLED
and OTEL_INSTRUMENTATION_COMMON_DEFAULT_ENABLED
Another reason to have There is also a proposal to have a pattern |
@dmitryax shared with me a clean proposal (which he also recommends to try to add into the OTel Spec):
So if the user wants all the instrumentation except for GraphQL tracing instrumentation:
If the user wants to enable only GraphQL tracing instrumentation:
He suggests avoiding having both |
@carlosalberto discussed it with the OTel spec SIG and/or with OTel Config WG. There is not agreement that these env vars should land into to OTel Spec until the OTel Config Spec becomes more mature. Therefore, we should add the Therefore my current proposal is to have:
|
OTEL_INSTRUMENTATION_[NAME]_ENABLED
and OTEL_INSTRUMENTATION_COMMON_DEFAULT_ENABLED
OTEL_DOTNET_AUTO_*_INSTRUMENTATION_ENABLED
Oops, forgot about this issue. FYI @trask, this might be something we want to approach in the javaagent too.
On the Java side of things, we don't really differentiate between tracing/metrics/any-other-signal instrumentation - it's a whole package, you either get everything or have to configure views/samplers that filter particular data out. (Which I think is kinda the point of OpenTelemetry, to have correlated different signals) Oh, and I like the |
Instead of
OTEL_DOTNET_AUTO_[SIGNAL]_ENABLED_INSTRUMENTATIONS
andOTEL_DOTNET_AUTO_[SIGNAL]_DISABLED_INSTRUMENTATIONS
we could supportOTEL_INSTRUMENTATION_[NAME]_ENABLED
andOTEL_INSTRUMENTATION_COMMON_DEFAULT_ENABLED
like the OTel Java Agent does.I think it may be good to be consistent with Java.
If we agree on it we should first try to bring it to the https://github.com/open-telemetry/opentelemetry-specification.
The text was updated successfully, but these errors were encountered: