Package io.opencensus.trace.config
Class TraceConfig
- java.lang.Object
-
- io.opencensus.trace.config.TraceConfig
-
- Direct Known Subclasses:
TraceConfig.NoopTraceConfig,TraceConfigImpl
public abstract class TraceConfig extends java.lang.ObjectGlobal configuration of the trace service. This allows users to change configs for the default sampler, maximum events to be kept, etc. (seeTraceParamsfor details).- Since:
- 0.5
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classTraceConfig.NoopTraceConfig
-
Field Summary
Fields Modifier and Type Field Description private static TraceConfig.NoopTraceConfigNOOP_TRACE_CONFIG
-
Constructor Summary
Constructors Constructor Description TraceConfig()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract TraceParamsgetActiveTraceParams()Returns the activeTraceParams.static TraceConfiggetNoopTraceConfig()Returns the no-op implementation of theTraceConfig.abstract voidupdateActiveTraceParams(TraceParams traceParams)Updates the activeTraceParams.
-
-
-
Field Detail
-
NOOP_TRACE_CONFIG
private static final TraceConfig.NoopTraceConfig NOOP_TRACE_CONFIG
-
-
Method Detail
-
getActiveTraceParams
public abstract TraceParams getActiveTraceParams()
Returns the activeTraceParams.- Returns:
- the active
TraceParams. - Since:
- 0.5
-
updateActiveTraceParams
public abstract void updateActiveTraceParams(TraceParams traceParams)
Updates the activeTraceParams.- Parameters:
traceParams- the new activeTraceParams.- Since:
- 0.5
-
getNoopTraceConfig
public static TraceConfig getNoopTraceConfig()
Returns the no-op implementation of theTraceConfig.- Returns:
- the no-op implementation of the
TraceConfig. - Since:
- 0.5
-
-