Interface ObservationView
- All Known Subinterfaces:
Observation
- All Known Implementing Classes:
NullObservation
-
Method Summary
Modifier and TypeMethodDescriptionReturns theObservation.ContextViewattached to this observation.default @Nullable Observation.ScopeDeprecated.This method will be removed in a future release.default ObservationRegistryReturns theObservationRegistryattached to this observation.
-
Method Details
-
getObservationRegistry
Returns theObservationRegistryattached to this observation.- Returns:
- corresponding observation registry
- Since:
- 1.10.10
-
getContextView
Observation.ContextView getContextView()Returns theObservation.ContextViewattached to this observation.- Returns:
- corresponding context
-
getEnclosingScope
Deprecated.This method will be removed in a future release.Pops the last scope attached to thisObservationViewin this thread.- Returns:
- scope for this
ObservationView,nullif there was no scope - Since:
- 1.10.6
-