Package io.micrometer.observation
Interface ObservationView
- All Known Subinterfaces:
Observation
- All Known Implementing Classes:
NullObservation
public interface ObservationView
Read only view on the
Observation
.- Since:
- 1.10.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns theObservation.ContextView
attached to this observation.default Observation.Scope
Pops the last scope attached to thisObservationView
in this thread.default ObservationRegistry
Returns theObservationRegistry
attached to this observation.
-
Method Details
-
getObservationRegistry
Returns theObservationRegistry
attached to this observation.- Returns:
- corresponding observation registry
- Since:
- 1.10.10
-
getContextView
Observation.ContextView getContextView()Returns theObservation.ContextView
attached to this observation.- Returns:
- corresponding context
-
getEnclosingScope
Pops the last scope attached to thisObservationView
in this thread.- Returns:
- scope for this
ObservationView
,null
if there was no scope - Since:
- 1.10.6
-