-
Notifications
You must be signed in to change notification settings - Fork 1k
Update DeclarativeConfigUtil to support general node #15704
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
Update DeclarativeConfigUtil to support general node #15704
Conversation
| public static ExtendedDeclarativeConfigProperties getInstrumentationConfig( | ||
| OpenTelemetry openTelemetry, String instrumentationName) { | ||
| return getConfig(openTelemetry).get("java").get(instrumentationName); | ||
| } | ||
|
|
||
| public static ExtendedDeclarativeConfigProperties getGeneralInstrumentationConfig( | ||
| OpenTelemetry openTelemetry) { | ||
| return getConfig(openTelemetry).get("general"); | ||
| } |
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.
currently proposed naming from open-telemetry/opentelemetry-java#7927
| public boolean indyEnabled() { | ||
| return config.get("agent").getBoolean("indy/development", false); | ||
| } | ||
|
|
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.
removed this from ExperimentalConfig because it really belongs in some kind of "distribution config" which deserves a different abstraction, related to open-telemetry/opentelemetry-specification#4800 (comment)
| commonConfig | ||
| .get("messaging") |
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.
Moved the common messaging configuration under .instrumentation.java.common.messaging.
| return commonConfig | ||
| .get("messaging") |
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.
same here
| indyEnabled = | ||
| AgentInstrumentationConfig.get().getBoolean("otel.javaagent.experimental.indy", false); |
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.
will come back to this an create some kind of "distribution config" abstraction
not saying we should, but even if we decide to keep it under .instrumentation.java.agent.* (and not use the .distribution.*), I still don't think this property belongs in ExperimentalConfig with the other .instrumentation.java.common.* properties
No description provided.