Interface TracingObserverConfig

All Superinterfaces:
ObserverConfigBase, Prototype.Api, Prototype.Factory<TracingObserver>
All Known Implementing Classes:
TracingObserverConfig.BuilderBase.TracingObserverConfigImpl

public interface TracingObserverConfig extends Prototype.Api, ObserverConfigBase
Configuration of Tracing observer.
See Also:
  • Method Details

    • builder

      Create a new fluent API builder to customize configuration.
      Returns:
      a new builder
    • builder

      Create a new fluent API builder from an existing instance.
      Parameters:
      instance - an existing instance used as a base for the builder
      Returns:
      a builder based on an instance
    • create

      static TracingObserverConfig create(Config config)
      Create a new instance from configuration.
      Parameters:
      config - used to configure the new instance
      Returns:
      a new instance configured from configuration
    • create

      @Deprecated static TracingObserverConfig create(Config config)
      Create a new instance from configuration.
      Parameters:
      config - used to configure the new instance
      Returns:
      a new instance configured from configuration
    • envConfig

      TracingConfig envConfig()
      Use the provided configuration as a default for any request.
      Returns:
      default web server tracing configuration
    • pathConfigs

      List<PathTracingConfig> pathConfigs()
      Path specific configuration of tracing.
      Returns:
      configuration of tracing for specific paths
    • tracer

      Tracer tracer()
      Tracer to use to extract inbound span context.
      Returns:
      tracer to use
    • weight

      double weight()
      Weight of the feature registered with WebServer. Changing weight may cause tracing to be executed at a different time (such as after security, or even after all routes). Please understand feature weights before changing this order.
      Returns:
      weight of tracing feature
    • sockets

      Set<String> sockets()
      Sockets to trace.

      If empty, all sockets will be traced. The default socket without any tag, additional sockets with a tag with the socket name.

      Returns:
      set of sockets to trace
    • waitTracingEnabled

      boolean waitTracingEnabled()
      Whether waiting due to concurrency limit constraints should be traced.
      Returns:
      true if wait-time spans should be created; false otherwise
    • name

      String name()
      Description copied from interface: ObserverConfigBase
      Name of this observer. Each observer should provide its own default for this property.
      Specified by:
      name in interface ObserverConfigBase
      Returns:
      observer name