OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:traceConfig
(Results
1 - 13
of
13
) sorted by null
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/trace/config/
TraceConfigImplTest.java
30
private final TraceConfigImpl
traceConfig
= new TraceConfigImpl();
34
assertThat(
traceConfig
.getActiveTraceParams()).isEqualTo(TraceParams.DEFAULT);
48
traceConfig
.updateActiveTraceParams(traceParams);
49
assertThat(
traceConfig
.getActiveTraceParams()).isEqualTo(traceParams);
50
traceConfig
.updateActiveTraceParams(TraceParams.DEFAULT);
51
assertThat(
traceConfig
.getActiveTraceParams()).isEqualTo(TraceParams.DEFAULT);
/external/opencensus-java/api/src/test/java/io/opencensus/trace/config/
TraceConfigTest.java
26
/** Unit tests for {@link
TraceConfig
}. */
29
TraceConfig
traceConfig
=
TraceConfig
.getNoopTraceConfig();
33
assertThat(
traceConfig
.getActiveTraceParams()).isEqualTo(TraceParams.DEFAULT);
48
traceConfig
.updateActiveTraceParams(traceParams);
49
assertThat(
traceConfig
.getActiveTraceParams()).isEqualTo(TraceParams.DEFAULT);
/external/opencensus-java/contrib/zpages/src/main/java/io/opencensus/contrib/zpages/
TraceConfigzZPageHandler.java
22
import io.opencensus.trace.config.
TraceConfig
;
39
private final
TraceConfig
traceConfig
;
84
static TraceConfigzZPageHandler create(
TraceConfig
traceConfig
) {
85
return new TraceConfigzZPageHandler(
traceConfig
);
146
emitTraceParamsTable(
traceConfig
.getActiveTraceParams(), out);
158
TraceParams.Builder traceParamsBuilder =
traceConfig
.getActiveTraceParams().toBuilder();
185
traceConfig
.updateActiveTraceParams(traceParamsBuilder.build());
187
traceConfig
.updateActiveTraceParams(TraceParams.DEFAULT)
[
all
...]
/external/opencensus-java/examples/src/main/java/io/opencensus/examples/trace/
MultiSpansContextTracing.java
26
import io.opencensus.trace.config.
TraceConfig
;
74
TraceConfig
traceConfig
= Tracing.getTraceConfig();
75
traceConfig
.updateActiveTraceParams(
76
traceConfig
.getActiveTraceParams().toBuilder().setSampler(Samplers.alwaysSample()).build());
MultiSpansScopedTracing.java
26
import io.opencensus.trace.config.
TraceConfig
;
72
TraceConfig
traceConfig
= Tracing.getTraceConfig();
73
traceConfig
.updateActiveTraceParams(
74
traceConfig
.getActiveTraceParams().toBuilder().setSampler(Samplers.alwaysSample()).build());
MultiSpansTracing.java
25
import io.opencensus.trace.config.
TraceConfig
;
61
TraceConfig
traceConfig
= Tracing.getTraceConfig();
62
traceConfig
.updateActiveTraceParams(
63
traceConfig
.getActiveTraceParams().toBuilder().setSampler(Samplers.alwaysSample()).build());
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/trace/
TraceComponentImplBase.java
29
import io.opencensus.trace.config.
TraceConfig
;
44
private final
TraceConfig
traceConfig
= new TraceConfigImpl();
68
tracer = new TracerImpl(randomHandler, startEndHandler, clock,
traceConfig
);
87
public
TraceConfig
getTraceConfig() {
88
return
traceConfig
;
TracerImpl.java
25
import io.opencensus.trace.config.
TraceConfig
;
36
TraceConfig
traceConfig
) {
38
new SpanBuilderImpl.Options(randomHandler, startEndHandler, clock,
traceConfig
);
SpanBuilderImpl.java
35
import io.opencensus.trace.config.
TraceConfig
;
69
TraceParams activeTraceParams = options.
traceConfig
.getActiveTraceParams();
216
private final
TraceConfig
traceConfig
;
222
TraceConfig
traceConfig
) {
226
this.
traceConfig
= checkNotNull(
traceConfig
, "
traceConfig
");
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/trace/
TracerImplTest.java
27
import io.opencensus.trace.config.
TraceConfig
;
40
@Mock private
TraceConfig
traceConfig
;
47
new TracerImpl(new SecureRandomHandler(), startEndHandler, TestClock.create(),
traceConfig
);
SpanBuilderImplTest.java
32
import io.opencensus.trace.config.
TraceConfig
;
55
@Mock private
TraceConfig
traceConfig
;
61
new SpanBuilderImpl.Options(randomHandler, startEndHandler, testClock,
traceConfig
);
62
when(
traceConfig
.getActiveTraceParams()).thenReturn(alwaysSampleTraceParams);
335
when(
traceConfig
.getActiveTraceParams()).thenReturn(TraceParams.DEFAULT);
374
assertThat(
traceConfig
.getActiveTraceParams()).isEqualTo(TraceParams.DEFAULT);
/external/opencensus-java/exporters/trace/ocagent/src/test/java/io/opencensus/exporter/trace/ocagent/
TraceProtoUtilsTest.java
36
import io.opencensus.proto.trace.v1.
TraceConfig
;
65
@Mock private io.opencensus.trace.config.
TraceConfig
mockTraceConfig;
275
TraceConfig
.newBuilder()
284
TraceConfig
.newBuilder()
293
TraceConfig
.newBuilder()
301
TraceConfig
traceConfig
=
302
TraceConfig
.newBuilder()
305
assertThat(TraceProtoUtils.fromTraceConfigProto(
traceConfig
, DEFAULT_PARAMS).getSampler())
311
TraceConfig
traceConfig
[
all
...]
/external/opencensus-java/exporters/trace/ocagent/src/main/java/io/opencensus/exporter/trace/ocagent/
TraceProtoUtils.java
40
import io.opencensus.proto.trace.v1.
TraceConfig
;
315
* Converts {@link TraceParams} to {@link
TraceConfig
}.
318
* @return {@code
TraceConfig
}.
320
static
TraceConfig
toTraceConfigProto(TraceParams traceParams) {
321
TraceConfig
.Builder traceConfigProtoBuilder =
TraceConfig
.newBuilder();
349
* Converts {@link
TraceConfig
} to {@link TraceParams}.
351
* @param traceConfigProto {@code
TraceConfig
}.
357
TraceConfig
traceConfigProto, TraceParams currentTraceParams) {
374
// Creates a
TraceConfig
proto message with current TraceParams
[
all
...]
Completed in 698 milliseconds