Interface ObserveProvider

All Superinterfaces:
ConfiguredProvider<Observer>
All Known Implementing Classes:
ConfigObserveProvider, HealthObserveProvider, InfoObserveProvider, LogObserveProvider, MetricsObserveProvider, TracingObserveProvider

public interface ObserveProvider extends ConfiguredProvider<Observer>
ServiceLoader provider interface for observability services.
  • Method Summary

    Modifier and Type
    Method
    Description
    Configuration key of this provider.
    create(Config config, String name)
    Create a new observer from the provided configuration.
    default String
    Type of this observe provider, to map to Observer when explicitly configured by user (so we do not duplicate observers).
  • Method Details

    • configKey

      String configKey()
      Configuration key of this provider. The following keys must be honored by Observe support:
      • enabled - enable/disable the service
      • endpoint - endpoint, if starts with / then absolute, otherwise relative to observe endpoint
      • cors - CORS setup for this endpoint
      Specified by:
      configKey in interface ConfiguredProvider<Observer>
      Returns:
      configuration key of this provider (such as health)
    • type

      default String type()
      Type of this observe provider, to map to Observer when explicitly configured by user (so we do not duplicate observers).
      Returns:
      type of this observer, defaults to configKey()
    • create

      Observer create(Config config, String name)
      Create a new observer from the provided configuration.
      Specified by:
      create in interface ConfiguredProvider<Observer>
      Parameters:
      config - configuration of this provider
      name - name of the instance
      Returns:
      a new observer to be registered with routing