Skip to content

Conversation

@jeanbisutti
Copy link
Member

@jeanbisutti jeanbisutti commented Jan 30, 2024

With #10306, the OTel Logback appender is added by the OTel starter if the appender is not declared in a Logback XML file.

With this PR it becomes possible the configure the OpenTelemetry Logback appender with system properties from the Spring starter, as the OpenTelemetry Java agent is able to do.

@jeanbisutti jeanbisutti requested a review from a team January 30, 2024 16:34
@jeanbisutti
Copy link
Member Author

If an attribute is configured both in the Logback XML file and with a system property, the system property overrides the configuration.

@@ -0,0 +1,44 @@
{
Copy link
Member

Choose a reason for hiding this comment

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

will this file conflict with the one we're autogenerating?

Copy link
Member Author

Choose a reason for hiding this comment

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

No. See https://docs.spring.io/spring-boot/docs/current/reference/html/configuration-metadata.html#appendix.configuration-metadata.annotation-processor.adding-additional-metadata: "the annotation processor automatically merges items from META-INF/additional-spring-configuration-metadata.json into the main metadata file."

@trask trask enabled auto-merge (squash) February 2, 2024 17:11
@trask trask merged commit 80e5bac into open-telemetry:main Feb 2, 2024
steverao pushed a commit to steverao/opentelemetry-java-instrumentation that referenced this pull request Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants