Common ResponseContext interface for interacting with the response by shakuzen · Pull Request #3362 · micrometer-metrics/micrometer (original) (raw)
Without this, we need to check two different types (currently) that have the same getter/setter methods for response. This allows us to use a common interface as shown by the changes in ObservationOrTimerCompatibleInstrumentation.
This is a follow-up to #3357 (comment)