ObservationDocumentation interfaceKeyName then those need to be declared as
nested enumsObservationDocumentation#getHighCardinalityKeyNames() need to call the
nested enum's values() method to retrieve the array of allowed keysObservationDocumentation#getLowCardinalityKeyNames() need to call the
nested enum's values() method to retrieve the array of allowed keysKeyName enum values() methods you
need to call the KeyName#merge(KeyName[]...) method| Modifier and Type | Field and Description |
|---|---|
| public static final KeyName[] | EMPTY
Empty key names. |
| public static final Observation. | EMPTY_EVENT_NAMES
Empty event names. |
| Modifier and Type | Method and Description |
|---|---|
| public default String | Returns: contextual nameMore human-readable name available within the given context (e.g.: span name). |
| public default Class | Returns: default naming conventionDefault naming convention (sets technical and contextual names, and key values). |
| public default Observation. | |
| public default KeyName[] | Returns: allowed tag keys for high cardinality key-valuesHigh cardinality key names. |
| public default KeyName[] | Returns: allowed tag keys for low cardinality key-valuesLow cardinality key names. |
| public default String | |
| public default String | |
| public default Observation | Returns: observationobservation registry registry)Creates an |
| public default Observation | Returns: observationobservation registry registry, Supplier<Observation.observation context supplier contextSupplierCreates an |
| public default <T extends Observation. | Returns: observationconvention that (if not customConvention, ObservationConvention<T> null) will override any
pre-configured conventionsdefault convention that will be picked if there was
neither custom convention nor a pre-configured one via
defaultConvention, Supplier<T> ObservationRegistry.observation context supplier contextSupplier, ObservationRegistry observation registry registry)Creates an |
| public default Observation | Returns: observationobservation registry registry)Creates and starts an |
| public default Observation | Returns: observationobservation registry registry, Supplier<Observation.observation context supplier contextSupplierCreates and starts an |
| public default <T extends Observation. | Returns: observationconvention that (if not customConvention, ObservationConvention<T> null) will override any
pre-configured conventionsdefault convention that will be picked if there was
neither custom convention nor a pre-configured one via
defaultConvention, Supplier<T> ObservationRegistry.observation context supplier contextSupplier, ObservationRegistry observation registry registry)Creates and starts an |
| EMPTY | back to summary |
|---|---|
| public static final KeyName[] EMPTY Empty key names. | |
| EMPTY_EVENT_NAMES | back to summary |
|---|---|
| public static final Observation. Empty event names. | |
| getContextualName | back to summary |
|---|---|
| public default String getContextualName() More human-readable name available within the given context (e.g.: span name). You
can set the name either by this method or | |
| getDefaultConvention | back to summary |
|---|---|
| public default Class Default naming convention (sets technical and contextual names, and key values).
You can set the names either by this method or
| |
| getEvents | back to summary |
|---|---|
| public default Observation. Event values.
| |
| getHighCardinalityKeyNames | back to summary |
|---|---|
| public default KeyName[] getHighCardinalityKeyNames() High cardinality key names.
| |
| getLowCardinalityKeyNames | back to summary |
|---|---|
| public default KeyName[] getLowCardinalityKeyNames() Low cardinality key names.
| |
| getName | back to summary |
|---|---|
| public default String getName() Default technical name (e.g.: metric name). You can set the name either by this
method or | |
| getPrefix | back to summary |
|---|---|
| public default String getPrefix() Returns required prefix to be there for tags. For example,
| |
| observation | back to summary |
|---|---|
| public default Observation observation(ObservationRegistry registry) Creates an
| |
| observation | back to summary |
|---|---|
| public default Observation observation(ObservationRegistry registry, Supplier<Observation. Creates an
| |
| observation | back to summary |
|---|---|
| public default <T extends Observation. Creates an
| |
| start | back to summary |
|---|---|
| public default Observation start(ObservationRegistry registry) Creates and starts an
| |
| start | back to summary |
|---|---|
| public default Observation start(ObservationRegistry registry, Supplier<Observation. Creates and starts an
| |
| start | back to summary |
|---|---|
| public default <T extends Observation. Creates and starts an
| |