Module io.helidon.webserver.observe
Package io.helidon.webserver.observe.spi
Interface ObserveProvider
- All Superinterfaces:
ConfiguredProvider<Observer>
- All Known Implementing Classes:
ConfigObserveProvider,HealthObserveProvider,InfoObserveProvider,LogObserveProvider,MetricsObserveProvider,TracingObserveProvider
ServiceLoader provider interface for observability services.-
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()
-
create
Create a new observer from the provided configuration.- Specified by:
createin interfaceConfiguredProvider<Observer>- Parameters:
config- configuration of this providername- name of the instance- Returns:
- a new observer to be registered with routing
-