-
Notifications
You must be signed in to change notification settings - Fork 4.6k
[OpenTelemetry] Turn off gcp otel auth extension by default. #38940
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -306,6 +306,10 @@ public static void main( | |
| } | ||
| }); | ||
| LOG.info("Enabled Open Telemetry with properties: {}", openTelemetryProperties); | ||
| } else { | ||
| // turn off auth extension so it doesn't interfere if user is configuring otel e.g. via | ||
| // JvmInitializer. | ||
| System.setProperty("google.otel.auth.target.signals", "none"); | ||
| } | ||
|
Comment on lines
+309
to
313
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unconditionally setting the system property } else {
// turn off auth extension so it doesn't interfere if user is configuring otel e.g. via
// JvmInitializer.
if (System.getProperty("google.otel.auth.target.signals") == null) {
System.setProperty("google.otel.auth.target.signals", "none");
}
} |
||
| EnumMap< | ||
| BeamFnApi.InstructionRequest.RequestCase, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unconditionally setting the system property
google.otel.auth.target.signalswill overwrite any value explicitly configured by the user (e.g., via command-line JVM arguments like-Dgoogle.otel.auth.target.signals=...). It is safer to check if the property is already set before overriding it.