-
Notifications
You must be signed in to change notification settings - Fork 787
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
Micrometer Observation API Support #793
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #793 +/- ##
============================================
- Coverage 78.57% 78.54% -0.03%
Complexity 552 552
============================================
Files 65 65
Lines 2007 2009 +2
Branches 282 283 +1
============================================
+ Hits 1577 1578 +1
Misses 268 268
- Partials 162 163 +1
|
@@ -57,9 +57,9 @@ | |||
"defaultValue": "false" | |||
}, | |||
{ | |||
"name": "spring.cloud.openfeign.metrics.enabled", | |||
"name": "spring.cloud.openfeign.micrometer.enabled", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the property name need to change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think yes. I don't think metrics.enabled
makes any sense when the users don't even have metrics, e.g.: they enable tracing but not metrics through the Observation API.
Or to put it in a different way: SC-OpenFeign has no idea what the user will configure in their ObservationRegistry
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot @jonatan-ivanov. LGTM.
This change auto-configures
MicrometerObservationCapability
. The previous auto-configuration forMicrometerCapability
is still available but for thatMicrometerObservationCapability
should not be present (disabled, no observation registry, micrometer-observation is not on the classpath).Breaking change: properties were renamed from
spring.cloud.openfeign.metrics
tospring.cloud.openfeign.micrometer
.Previous Micrometer support in SC-OpenFeign: #462
MicrometerObservationCapability
support in Feign: OpenFeign/feign#1760