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:
configKey
in interfaceConfiguredProvider<Observer>
- Returns:
- configuration key of this provider (such as
health
)
-
type
Type of this observe provider, to map toObserver
when 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:
create
in interfaceConfiguredProvider<Observer>
- Parameters:
config
- configuration of this providername
- name of the instance- Returns:
- a new observer to be registered with routing
-