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

Attempt to augment configuration properties breaks application when using the observability module #498

Closed
plaehn opened this issue Feb 9, 2024 · 1 comment
Assignees
Labels
in: observability Observability support type: bug Something isn't working
Milestone

Comments

@plaehn
Copy link

plaehn commented Feb 9, 2024

We get an "AopConfigException" on a closed immutable Kotlin data class annotated with @ConfigurationProperties despite the fact that we use kotlin-maven-plugin with the "spring" compiler plugin.

Full details can be found here: https://stackoverflow.com/q/77915031/1908995

Can you please look into this?

@odrotbohm odrotbohm self-assigned this Feb 14, 2024
@odrotbohm odrotbohm added in: observability Observability support type: bug Something isn't working labels Feb 14, 2024
@odrotbohm odrotbohm added this to the 1.2 M2 milestone Feb 14, 2024
@odrotbohm odrotbohm changed the title "AopConfigException: Could not generate CGLIB subclass" for @ConfigurationProperties in a Kotlin project Attempt to augment configuration properties breaks application when using the observability module Feb 14, 2024
odrotbohm added a commit that referenced this issue Feb 14, 2024
…rvability.

We now avoid proxying configuration properties in the BeanPostProcessor that creates tracing proxies.
@plaehn
Copy link
Author

plaehn commented Feb 27, 2024

Thanks for the fix! :-) We can confirm that this works for version 1.2.0-M2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: observability Observability support type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants