Skip to content
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

add support for missing spring list properties #12819

Merged
merged 7 commits into from
Dec 12, 2024

Conversation

zeitlinger
Copy link
Member

No description provided.

@zeitlinger zeitlinger self-assigned this Nov 29, 2024
@zeitlinger zeitlinger requested a review from a team as a code owner November 29, 2024 15:57
@github-actions github-actions bot added the test native This label can be applied to PRs to trigger them to run native tests label Nov 29, 2024
@@ -419,8 +419,8 @@
},
{
"name": "otel.instrumentation.logback-appender.experimental.capture-mdc-attributes",
"type": "java.util.List<java.lang.String>",
"description": "MDC attributes to capture. Use the wildcard character <code>*</code> to capture all attributes."
"type": "java.lang.String",
Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Not sure what you mean.

From what I observe, @Value does not seem to work in LogbackAppenderApplicationListener.

org.springframework.boot.context.logging.LoggingApplicationListener does not use @Value .

@zeitlinger
Copy link
Member Author

@jeanbisutti please review

Copy link
Member

@jeanbisutti jeanbisutti left a comment

Choose a reason for hiding this comment

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

To help make the release note, could you please list the added properties in the description?

Are we sure that all the added properties are working? Perhaps it may be worth adding automatic tests.

@@ -419,8 +419,8 @@
},
{
"name": "otel.instrumentation.logback-appender.experimental.capture-mdc-attributes",
"type": "java.util.List<java.lang.String>",
"description": "MDC attributes to capture. Use the wildcard character <code>*</code> to capture all attributes."
"type": "java.lang.String",
Copy link
Member

Choose a reason for hiding this comment

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

Not sure what you mean.

From what I observe, @Value does not seem to work in LogbackAppenderApplicationListener.

org.springframework.boot.context.logging.LoggingApplicationListener does not use @Value .

@zeitlinger zeitlinger added this to the v2.11.0 milestone Dec 12, 2024
@zeitlinger
Copy link
Member Author

Perhaps it may be worth adding automatic tests.

done

@laurit
Copy link
Contributor

laurit commented Dec 12, 2024

@zeitlinger could you elaborate what this change is about. Did these list properties work at all previously or did the work in some different way? If the worked in some different way is this change backwards compatible?

@zeitlinger
Copy link
Member Author

Did these list properties work at all previously or did the work in some different way?

Old:

prop: a,b

New:

prop: a,b

OR

prop: [a,b]

If the worked in some different way is this change backwards compatible?

yes

@laurit laurit merged commit 61b8f72 into open-telemetry:main Dec 12, 2024
56 checks passed
@zeitlinger zeitlinger deleted the list-properties branch January 13, 2025 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test native This label can be applied to PRs to trigger them to run native tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants