OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:traceOptions
(Results
1 - 10
of
10
) sorted by null
/external/opencensus-java/api/src/main/java/io/opencensus/trace/
SpanContext.java
27
*
TraceOptions
options}.
36
private final
TraceOptions
traceOptions
;
45
new SpanContext(TraceId.INVALID, SpanId.INVALID,
TraceOptions
.DEFAULT, TRACESTATE_DEFAULT);
52
* @param
traceOptions
the trace options for the span context.
54
* @deprecated use {@link #create(TraceId, SpanId,
TraceOptions
, Tracestate)}.
57
public static SpanContext create(TraceId traceId, SpanId spanId,
TraceOptions
traceOptions
) {
58
return create(traceId, spanId,
traceOptions
, TRACESTATE_DEFAULT);
66
* @param
traceOptions
the trace options for the span context
[
all
...]
TraceOptions.java
33
public final class
TraceOptions
{
40
* The size in bytes of the {@code
TraceOptions
}.
47
* The default {@code
TraceOptions
}.
51
public static final
TraceOptions
DEFAULT = fromByte(DEFAULT_OPTIONS);
56
// Creates a new {@code
TraceOptions
} with the given options.
57
private
TraceOptions
(byte options) {
62
* Returns a {@code
TraceOptions
} built from a byte representation.
67
*
TraceOptions
.fromBytes(buffer, 0);
70
* @param buffer the representation of the {@code
TraceOptions
}.
71
* @return a {@code
TraceOptions
} whose representation is given by the {@code buffer} parameter
[
all
...]
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/trace/propagation/
B3Format.java
25
import io.opencensus.trace.
TraceOptions
;
103
TraceOptions
traceOptions
=
TraceOptions
.DEFAULT;
106
traceOptions
=
TraceOptions
.builder().setIsSampled(true).build();
108
return SpanContext.create(traceId, spanId,
traceOptions
, TRACESTATE_DEFAULT);
BinaryFormatImpl.java
25
import io.opencensus.trace.
TraceOptions
;
48
* <li>
TraceOptions
: (field_id = 2, len = 1, default = "0") - 1-byte array
91
/** Use {@link
TraceOptions
#DEFAULT} unless its optional field is present. */
92
private static final int ALL_FORMAT_LENGTH = REQUIRED_FORMAT_LENGTH + ID_SIZE +
TraceOptions
.SIZE;
121
TraceOptions
traceOptions
=
TraceOptions
.DEFAULT;
144
traceOptions
=
TraceOptions
.fromByte(bytes[pos + ID_SIZE]);
146
return SpanContext.create(traceId, spanId,
traceOptions
, TRACESTATE_DEFAULT)
[
all
...]
/external/opencensus-java/contrib/http_util/src/main/java/io/opencensus/contrib/http/util/
CloudTraceFormat.java
27
import io.opencensus.trace.
TraceOptions
;
73
static final
TraceOptions
OPTIONS_SAMPLED =
TraceOptions
.builder().setIsSampled(true).build();
74
static final
TraceOptions
OPTIONS_NOT_SAMPLED =
TraceOptions
.DEFAULT;
123
TraceOptions
traceOptions
= OPTIONS_NOT_SAMPLED;
127
traceOptions
= OPTIONS_SAMPLED;
130
return SpanContext.create(traceId, spanId,
traceOptions
, TRACESTATE_DEFAULT);
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/trace/
SpanBuilderImpl.java
33
import io.opencensus.trace.
TraceOptions
;
46
private static final
TraceOptions
SAMPLED_TRACE_OPTIONS =
47
TraceOptions
.builder().setIsSampled(true).build();
48
private static final
TraceOptions
NOT_SAMPLED_TRACE_OPTIONS =
49
TraceOptions
.builder().setIsSampled(false).build();
87
TraceOptions
traceOptions
=
100
(
traceOptions
.isSampled() || Boolean.TRUE.equals(recordEvents))
102
SpanContext.create(traceId, spanId,
traceOptions
, tracestate),
112
SpanContext.create(traceId, spanId,
traceOptions
, tracestate))
[
all
...]
/external/opencensus-java/contrib/http_util/src/test/java/io/opencensus/contrib/http/util/
CloudTraceFormatTest.java
30
import io.opencensus.trace.
TraceOptions
;
72
private static final
TraceOptions
TRACE_OPTIONS_SAMPLED =
73
TraceOptions
.builder().setIsSampled(true).build();
74
private static final
TraceOptions
TRACE_OPTIONS_NOT_SAMPLED =
TraceOptions
.DEFAULT;
97
private static String constructHeader(String traceId, String spanId, String
traceOptions
) {
98
return traceId + SPAN_ID_DELIMITER + spanId + TRACE_OPTION_DELIMITER +
traceOptions
;
/external/opencensus-java/exporters/trace/jaeger/src/main/java/io/opencensus/exporter/trace/jaeger/
JaegerExporterHandler.java
48
import io.opencensus.trace.
TraceOptions
;
247
private int optionsToFlags(final
TraceOptions
traceOptions
) {
248
// Attempt to minimise allocations, since
TraceOptions
#getBytes currently creates a defensive
250
traceOptions
.copyBytesTo(optionsBuffer, optionsBuffer.length - 1);
/external/opencensus-java/exporters/trace/ocagent/src/test/java/io/opencensus/exporter/trace/ocagent/
TraceProtoUtilsTest.java
45
import io.opencensus.trace.
TraceOptions
;
107
private static final
TraceOptions
traceOptions
=
TraceOptions
.DEFAULT;
109
SpanContext.create(traceId, spanId,
traceOptions
, multiValueTracestate);
/external/opencensus-java/exporters/trace/stackdriver/src/test/java/io/opencensus/exporter/trace/stackdriver/
StackdriverV2ExporterHandlerProtoTest.java
50
import io.opencensus.trace.
TraceOptions
;
106
private static final
TraceOptions
traceOptions
=
TraceOptions
.DEFAULT;
107
private static final SpanContext spanContext = SpanContext.create(traceId, spanId,
traceOptions
);
Completed in 197 milliseconds