-
Notifications
You must be signed in to change notification settings - Fork 40.2k
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
Map NewRelicProperties Connect and Read Timeouts To NewRelicConfig #21440
Map NewRelicProperties Connect and Read Timeouts To NewRelicConfig #21440
Conversation
Thanks for the PR. Reading through the Micrometer discussion and reminding myself of the reason for the property deprecation, I'm not sure that we should map them in Spring Boot. In addition to the use of deprecated API, it would make the NewRelic auto-configuration inconsistent with the various other auto-configurations where we configure an Lines 67 to 73 in 9be7fa8
Ideally, we do something similar for NewRelic but the indirection of I'm not sure what our best option is here and with 2.3.0.RELEASE due tomorrow, it's unlikely that we'll be able to figure this one out in time. Flagging for team attention nevertheless. |
@wilkinsona Hi. Thanks for the quick response. @jkschneider proposed a fix in the auto configuration similar to example you provided in PR 1961 (above). I'm happy to update the PR as such, if you're comfortable with it. jkschneider proposed fix:
|
So, we can't do in that direction proposed by that PR. Micrometer has deprecated those methods and the plan is to remove them in Micrometer 2.0 so we shouldn't start using them. After chatting with @shakuzen we essentially have two options:
I'd like to experiment a bit on 1. and it feels to me it's the more reasonable option. |
@snicoll Hi. I've updated the PR based on @jkschneider suggestion but using the NewRelicProperties connect/readTimeouts to avoid use of the deprecated config. |
Thanks @neiljpowell but I am not keen to pursue this suggestion. We should apply configuration on things that we auto-configure and leave user-configured bean untouched. I've added something that looks relatively minimal in snicoll@3266cd2 @shakuzen what do you think? |
@snicoll Looks good to me. Thanks. |
Thanks for the feedback. I am going to decline this and will fix the issue on our side as part of #21578. |
Add connect/readTimout property mapping so overridden values are propagated.
See related PR conversation: micrometer-metrics/micrometer#1961