Package io.opencensus.trace.config
Class TraceConfig
java.lang.Object
io.opencensus.trace.config.TraceConfig
- Direct Known Subclasses:
TraceConfig.NoopTraceConfig
,TraceConfigImpl
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
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract TraceParams
Returns the activeTraceParams
.static TraceConfig
Returns the no-op implementation of theTraceConfig
.abstract void
updateActiveTraceParams
(TraceParams traceParams) Updates the activeTraceParams
.
-
Field Details
-
NOOP_TRACE_CONFIG
-
-
Constructor Details
-
TraceConfig
public TraceConfig()
-
-
Method Details
-
getActiveTraceParams
Returns the activeTraceParams
.- Returns:
- the active
TraceParams
. - Since:
- 0.5
-
updateActiveTraceParams
Updates the activeTraceParams
.- Parameters:
traceParams
- the new activeTraceParams
.- Since:
- 0.5
-
getNoopTraceConfig
Returns the no-op implementation of theTraceConfig
.- Returns:
- the no-op implementation of the
TraceConfig
. - Since:
- 0.5
-