-
Notifications
You must be signed in to change notification settings - Fork 986
Open
Labels
enhancementNew feature or requestNew feature or requestneeds triageNew issue that requires triageNew issue that requires triage
Description
Blocked by open-telemetry/opentelemetry-java#7495
Some places use system properties directly instead of the InstrumentationConfig, which is available with a static getter
This is unexpected when using the declarative config file.
Examples of wrong usage:
Line 35 in 57e957d
boolean agentDebugEnabled = ConfigPropertiesUtil.getBoolean("otel.javaagent.debug", false);
Examples of correct usage:Line 60 in ca3c685
AgentInstrumentationConfig.get().getBoolean("otel.javaagent.debug", false)); - (also available for spring starter)
Note: Double check that InstrumentationConfig is really initialized before.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestneeds triageNew issue that requires triageNew issue that requires triage
Type
Projects
Status
Blocked