Class TraceConfigImpl
- java.lang.Object
-
- io.opencensus.trace.config.TraceConfig
-
- io.opencensus.implcore.trace.config.TraceConfigImpl
-
public final class TraceConfigImpl extends TraceConfig
Global configuration of the trace service. This allows users to change configs for the default sampler, maximum events to be kept, etc.
-
-
Field Summary
Fields Modifier and Type Field Description private TraceParamsactiveTraceParams
-
Constructor Summary
Constructors Constructor Description TraceConfigImpl()Constructs a newTraceConfigImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TraceParamsgetActiveTraceParams()Returns the activeTraceParams.voidupdateActiveTraceParams(TraceParams traceParams)Updates the activeTraceParams.-
Methods inherited from class io.opencensus.trace.config.TraceConfig
getNoopTraceConfig
-
-
-
-
Field Detail
-
activeTraceParams
private volatile TraceParams activeTraceParams
-
-
Method Detail
-
getActiveTraceParams
public TraceParams getActiveTraceParams()
Description copied from class:TraceConfigReturns the activeTraceParams.- Specified by:
getActiveTraceParamsin classTraceConfig- Returns:
- the active
TraceParams.
-
updateActiveTraceParams
public void updateActiveTraceParams(TraceParams traceParams)
Description copied from class:TraceConfigUpdates the activeTraceParams.- Specified by:
updateActiveTraceParamsin classTraceConfig- Parameters:
traceParams- the new activeTraceParams.
-
-