Class ModulithContext
java.lang.Object
io.micrometer.observation.Observation.Context
org.springframework.modulith.observability.ModulithContext
- All Implemented Interfaces:
io.micrometer.observation.Observation.ContextView
public class ModulithContext
extends io.micrometer.observation.Observation.Context
A
Observation.Context for Modulithic applications.- Since:
- 1.4
- Author:
- Marcin Grzejsczak, Oliver Drotbohm
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionModulithContext(ObservedModule module, MethodInvocation invocation, Environment environment) -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringio.micrometer.common.KeyValuesio.micrometer.common.KeyValuesMethods inherited from class io.micrometer.observation.Observation.Context
addHighCardinalityKeyValue, addHighCardinalityKeyValues, addLowCardinalityKeyValue, addLowCardinalityKeyValues, clear, computeIfAbsent, containsKey, get, getAllKeyValues, getError, getHighCardinalityKeyValue, getHighCardinalityKeyValues, getLowCardinalityKeyValue, getLowCardinalityKeyValues, getName, getOrDefault, getParentObservation, getRequired, put, remove, removeHighCardinalityKeyValue, removeHighCardinalityKeyValues, removeLowCardinalityKeyValue, removeLowCardinalityKeyValues, setContextualName, setError, setName, setParentObservation, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.micrometer.observation.Observation.ContextView
getOrDefault
-
Field Details
-
DEFAULT_CONVENTION_NAME
- See Also:
-
-
Constructor Details
-
ModulithContext
- Parameters:
module- must not be null.invocation- must not be null.environment- must not be null.
-
-
Method Details
-
getModule
-
getInvocation
-
getApplicationName
-
getLowCardinalityValues
public io.micrometer.common.KeyValues getLowCardinalityValues() -
getHighCardinalityValues
public io.micrometer.common.KeyValues getHighCardinalityValues() -
getContextualName
- Specified by:
getContextualNamein interfaceio.micrometer.observation.Observation.ContextView- Overrides:
getContextualNamein classio.micrometer.observation.Observation.Context
-