Skip to content
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

Ability to disable the Reactor and Reactor Netty instrumentations with env variables #3472

Closed
wants to merge 1 commit into from

Conversation

jeanbisutti
Copy link
Member

Fix #3470

@@ -182,10 +182,13 @@ private static void enableInstrumentations(
"otel.instrumentation.opentelemetry-instrumentation-annotations.enabled", "true");
properties.put("otel.instrumentation.opentelemetry-api.enabled", "true");
properties.put("otel.instrumentation.opentelemetry-instrumentation-api.enabled", "true");
if (otelConfig.getBoolean("otel.instrumentation.reactor.enabled", true)) {
if (otelConfig.getBoolean("otel.instrumentation.reactor.enabled", true)
&& !"false".equalsIgnoreCase(System.getenv("OTEL_INSTRUMENTATION_REACTOR_ENABLED"))) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the equivalent of system property for OTEL_INSTRUMENTATION_REACTOR_ENABLED?

if (otelConfig.getBoolean("otel.instrumentation.reactor-netty.enabled", true)) {

if (otelConfig.getBoolean("otel.instrumentation.reactor-netty.enabled", true)
&& !"false".equalsIgnoreCase(System.getenv("OTEL_INSTRUMENTATION_REACTOR_NETTY_ENABLED"))) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here. then you can use otelConfig.getBoolean("")

@jeanbisutti
Copy link
Member Author

Already implemented

@jeanbisutti jeanbisutti closed this Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add ability to disable reactor instrumentation
2 participants