Top Description Methods
io.micrometer.observation

public Interface ObservationView

Known Direct Subinterfaces
io.micrometer.observation.Observation
Imports
io.micrometer.common.lang.Nullable, io.micrometer.observation.Observation.ContextView

Read only view on the Observation.
Since
1.10.0

Method Summary

Modifier and TypeMethod and Description
public Observation.ContextView

Returns:

corresponding context
getContextView
()

Returns the ContextView attached to this observation.

public default Observation.Scope

Returns:

scope for this ObservationView, null if there was no scope
getEnclosingScope
()

Pops the last scope attached to this ObservationView in this thread.

public default ObservationRegistry

Returns:

corresponding observation registry
getObservationRegistry
()

Returns the ObservationRegistry attached to this observation.

Method Detail

getContextViewback to summary
public Observation.ContextView getContextView()

Returns the ContextView attached to this observation.

Returns:Observation.ContextView

corresponding context

getEnclosingScopeback to summary
public default Observation.Scope getEnclosingScope()

Pops the last scope attached to this ObservationView in this thread.

Returns:Observation.Scope

scope for this ObservationView, null if there was no scope

Annotations
@Nullable
Since
1.10.6
getObservationRegistryback to summary
public default ObservationRegistry getObservationRegistry()

Returns the ObservationRegistry attached to this observation.

Returns:ObservationRegistry

corresponding observation registry

Since
1.10.10