Observation.
| Modifier and Type | Class and Description |
|---|---|
| public static class | ObservationRegistry.ObservationConfig
Access to configuration options for this registry. |
| Modifier and Type | Field and Description |
|---|---|
| public static final ObservationRegistry | NOOP
No-op implementation of |
| Modifier and Type | Method and Description |
|---|---|
| public static ObservationRegistry | |
| public Observation | Returns: current observation ornull if it's not presentWhen previously set will allow to retrieve the |
| public Observation. | Returns: current observation scope ornull if it's not presentWhen previously set will allow to retrieve the |
| public default boolean | Returns: true when this is a no-op observation registryChecks whether this |
| public ObservationRegistry. | |
| public void | setCurrentObservationScope(Observation.
observation scope currentSets the observation scope as current. |
| NOOP | back to summary |
|---|---|
| public static final ObservationRegistry NOOP No-op implementation of | |
| create | back to summary |
|---|---|
| public static ObservationRegistry create() Creates an instance of
| |
| getCurrentObservation | back to summary |
|---|---|
| public Observation getCurrentObservation() When previously set will allow to retrieve the
| |
| getCurrentObservationScope | back to summary |
|---|---|
| public Observation. When previously set will allow to retrieve the
| |
| isNoop | back to summary |
|---|---|
| public default boolean isNoop() Checks whether this
| |
| observationConfig | back to summary |
|---|---|
| public ObservationRegistry. Configuration options for this registry.
| |
| setCurrentObservationScope | back to summary |
|---|---|
| public void setCurrentObservationScope(Observation. Sets the observation scope as current.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final List | |
| private final List | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv <T extends Observation. | Returns: matchingObservationConvention or default when no matching
foundcontext context, ObservationConvention<T> default convention if none found defaultConvention)Finds an |
| pack-priv Collection | |
| pack-priv Collection | |
| pack-priv Collection | |
| pack-priv boolean | Returns: true when observation is enabledobservation technical name name, Observation.context contextCheck to assert whether |
| public ObservationRegistry. | Returns: This configuration instanceobservation convention observationConvention)Register an |
| public ObservationRegistry. | Returns: This configuration instancean observation filter to add to the current
configuration observationFilter)Register an observation filter for the |
| public ObservationRegistry. | Returns: This configuration instancehandler to add to the current configuration handler)Register a handler for the |
| public ObservationRegistry. | Returns: This configuration instancepredicate predicate)Register a predicate to define whether |
| observationConventions | back to summary |
|---|---|
| private final List<ObservationConvention<?>> observationConventions | |
| observationFilters | back to summary |
|---|---|
| private final List<ObservationFilter> observationFilters | |
| observationHandlers | back to summary |
|---|---|
| private final List<ObservationHandler<?>> observationHandlers | |
| observationPredicates | back to summary |
|---|---|
| private final List<ObservationPredicate> observationPredicates | |
| ObservationConfig | back to summary |
|---|---|
| public ObservationConfig() | |
| getObservationConvention | back to summary |
|---|---|
| pack-priv <T extends Observation. Finds an
| |
| getObservationConventions | back to summary |
|---|---|
| pack-priv Collection | |
| getObservationFilters | back to summary |
|---|---|
| pack-priv Collection | |
| getObservationHandlers | back to summary |
|---|---|
| pack-priv Collection | |
| isObservationEnabled | back to summary |
|---|---|
| pack-priv boolean isObservationEnabled(String name, Observation. Check to assert whether
| |
| observationConvention | back to summary |
|---|---|
| public ObservationRegistry. Register an
Please check the javadoc of
| |
| observationFilter | back to summary |
|---|---|
| public ObservationRegistry. Register an observation filter for the
| |
| observationHandler | back to summary |
|---|---|
| public ObservationRegistry. Register a handler for the
| |
| observationPredicate | back to summary |
|---|---|
| public ObservationRegistry. Register a predicate to define whether
| |