Class TraceConfigImpl
java.lang.Object
io.opencensus.trace.config.TraceConfig
io.opencensus.implcore.trace.config.TraceConfigImpl
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the activeTraceParams
.void
updateActiveTraceParams
(TraceParams traceParams) Updates the activeTraceParams
.Methods inherited from class io.opencensus.trace.config.TraceConfig
getNoopTraceConfig
-
Field Details
-
activeTraceParams
-
-
Constructor Details
-
TraceConfigImpl
public TraceConfigImpl()Constructs a newTraceConfigImpl
.
-
-
Method Details
-
getActiveTraceParams
Description copied from class:TraceConfig
Returns the activeTraceParams
.- Specified by:
getActiveTraceParams
in classTraceConfig
- Returns:
- the active
TraceParams
.
-
updateActiveTraceParams
Description copied from class:TraceConfig
Updates the activeTraceParams
.- Specified by:
updateActiveTraceParams
in classTraceConfig
- Parameters:
traceParams
- the new activeTraceParams
.
-