Interface ObserveProvider
- All Superinterfaces:
ConfiguredProvider<Observer>
- All Known Implementing Classes:
ConfigObserveProvider, HealthObserveProvider, InfoObserveProvider, LogObserveProvider, MetricsObserveProvider, TracingObserveProvider
Provider interface for observability services. Registry-managed applications discover providers through the owning
ServiceRegistry; direct construction and backward compatibility use
ServiceLoader.-
Method Summary
Methods inherited from interface ConfiguredProvider
create, createModifier and TypeMethodDescriptionCreate a new instance from the configuration located on the provided node.default Observercreate(Config config, String name, ServiceRegistry serviceRegistry) Create a new instance from configuration using services from the registry which owns the configured instance.
-
Method Details
-
configKey
String configKey()Configuration key of this provider. The following keys must be honored by Observe support:enabled- enable/disable the serviceendpoint- endpoint, if starts with/then absolute, otherwise relative to observe endpointcors- CORS setup for this endpoint
- Specified by:
configKeyin interfaceConfiguredProvider<Observer>- Returns:
- configuration key of this provider (such as
health)
-
type
Type of this observe provider, to map toObserverwhen explicitly configured by user (so we do not duplicate observers).- Returns:
- type of this observer, defaults to
configKey()
-