Skip to content

Conversation

@trask
Copy link
Member

@trask trask commented Dec 20, 2025

No description provided.

Comment on lines +22 to +30
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");
}
Copy link
Member Author

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

Comment on lines -59 to -62
public boolean indyEnabled() {
return config.get("agent").getBoolean("indy/development", false);
}

Copy link
Member Author

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)

Comment on lines +36 to 37
commonConfig
.get("messaging")
Copy link
Member Author

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.

Comment on lines +50 to 51
return commonConfig
.get("messaging")
Copy link
Member Author

Choose a reason for hiding this comment

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

same here

Comment on lines +164 to +165
indyEnabled =
AgentInstrumentationConfig.get().getBoolean("otel.javaagent.experimental.indy", false);
Copy link
Member Author

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

@trask trask marked this pull request as ready for review December 21, 2025 05:02
@trask trask requested a review from a team as a code owner December 21, 2025 05:02
@trask trask merged commit 9eb865a into open-telemetry:main Dec 21, 2025
85 checks passed
@trask trask deleted the update-declarative-config-util branch December 21, 2025 18:44
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.

2 participants