Package io.micrometer.observation
Interface ObservationView
- All Known Subinterfaces:
Observation
public interface ObservationView
Read only view on the
Observation.- Since:
- 1.10.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns theObservation.ContextViewattached to this observation.default Observation.ScopePops the last scope attached to thisObservationViewin this thread.
-
Method Details
-
getContextView
Observation.ContextView getContextView()Returns theObservation.ContextViewattached to this observation.- Returns:
- corresponding context
-
getEnclosingScope
Pops the last scope attached to thisObservationViewin this thread.- Returns:
- scope for this
ObservationView,nullif there was no scope - Since:
- 1.10.6
-