Class TraceConfig

  • Direct Known Subclasses:
    TraceConfig.NoopTraceConfig, TraceConfigImpl

    public abstract class TraceConfig
    extends java.lang.Object
    Global configuration of the trace service. This allows users to change configs for the default sampler, maximum events to be kept, etc. (see TraceParams for details).
    Since:
    0.5
    • Constructor Detail

      • TraceConfig

        public TraceConfig()
    • Method Detail

      • getActiveTraceParams

        public abstract TraceParams getActiveTraceParams()
        Returns the active TraceParams.
        Returns:
        the active TraceParams.
        Since:
        0.5
      • updateActiveTraceParams

        public abstract void updateActiveTraceParams​(TraceParams traceParams)
        Updates the active TraceParams.
        Parameters:
        traceParams - the new active TraceParams.
        Since:
        0.5
      • getNoopTraceConfig

        public static TraceConfig getNoopTraceConfig()
        Returns the no-op implementation of the TraceConfig.
        Returns:
        the no-op implementation of the TraceConfig.
        Since:
        0.5