- All Known Implementing Classes:
ConfigObserveProvider,HealthObserveProvider,InfoObserveProvider,LogObserveProvider,MetricsObserveProvider
public interface ObserveProvider
ServiceLoader provider interface for observability services.-
Method Summary
Modifier and TypeMethodDescriptionConfiguration key of this provider.Default endpoint of this provider.voidregister(Config config, String componentPath, HttpRouting.Builder routing) Register the provider's services and handlers to the routing builder.
-
Method Details
-
configKey
String configKey()Configuration key of this provider. The following keys are reserved by Observe support:enabled- enable/disable the serviceendpoint- endpoint, if starts with/then absolute, otherwise relative to observe endpoint
- Returns:
- configuration key of this provider (such as
health)
-
defaultEndpoint
String defaultEndpoint()Default endpoint of this provider. To define a relative path, do not include forward slash (such ashealthwould resolve into/observe/health).- Returns:
- default endpoint under
/observe
-
register
Register the provider's services and handlers to the routing builder. The component MUST honor the provided component path.- Parameters:
config- configuration of this providercomponentPath- component path to register under (such as/observe/health, based on configured endpoint anddefaultEndpoint())routing- routing builder
-