Class TraceConfig

java.lang.Object
io.opencensus.trace.config.TraceConfig
Direct Known Subclasses:
TraceConfig.NoopTraceConfig, TraceConfigImpl

public abstract class TraceConfig extends 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
  • Field Details

  • Constructor Details

    • TraceConfig

      public TraceConfig()
  • Method Details

    • 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