public static final class TraceContextOuterClass.TraceContext.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TraceContextOuterClass.TraceContext.Builder> implements TraceContextOuterClass.TraceContextOrBuilder
Data structure to propagate Zipkin trace information. See https://github.com/openzipkin/b3-propagation Trace identifiers are 64 or 128-bit, but all span identifiers within a trace are 64-bit. All identifiers are opaque.Protobuf type
com.daml.ledger.api.v1.TraceContext
Modifier and Type | Method and Description |
---|---|
TraceContextOuterClass.TraceContext.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
TraceContextOuterClass.TraceContext |
build() |
TraceContextOuterClass.TraceContext |
buildPartial() |
TraceContextOuterClass.TraceContext.Builder |
clear() |
TraceContextOuterClass.TraceContext.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TraceContextOuterClass.TraceContext.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TraceContextOuterClass.TraceContext.Builder |
clearParentSpanId()
The ParentSpanId is 64-bit in length and indicates the position of the parent operation in the trace tree.
|
TraceContextOuterClass.TraceContext.Builder |
clearSampled()
When the sampled decision is accept, report this span to the tracing system.
|
TraceContextOuterClass.TraceContext.Builder |
clearSpanId()
The SpanId is 64-bit in length and indicates the position of the current operation in the trace tree.
|
TraceContextOuterClass.TraceContext.Builder |
clearTraceId()
The TraceId is 64 or 128-bit in length and indicates the overall ID of the trace.
|
TraceContextOuterClass.TraceContext.Builder |
clearTraceIdHigh()
If present, this is the high 64 bits of the 128-bit identifier.
|
TraceContextOuterClass.TraceContext.Builder |
clone() |
TraceContextOuterClass.TraceContext |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.UInt64Value |
getParentSpanId()
The ParentSpanId is 64-bit in length and indicates the position of the parent operation in the trace tree.
|
com.google.protobuf.UInt64Value.Builder |
getParentSpanIdBuilder()
The ParentSpanId is 64-bit in length and indicates the position of the parent operation in the trace tree.
|
com.google.protobuf.UInt64ValueOrBuilder |
getParentSpanIdOrBuilder()
The ParentSpanId is 64-bit in length and indicates the position of the parent operation in the trace tree.
|
boolean |
getSampled()
When the sampled decision is accept, report this span to the tracing system.
|
long |
getSpanId()
The SpanId is 64-bit in length and indicates the position of the current operation in the trace tree.
|
long |
getTraceId()
The TraceId is 64 or 128-bit in length and indicates the overall ID of the trace.
|
long |
getTraceIdHigh()
If present, this is the high 64 bits of the 128-bit identifier.
|
boolean |
hasParentSpanId()
The ParentSpanId is 64-bit in length and indicates the position of the parent operation in the trace tree.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TraceContextOuterClass.TraceContext.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TraceContextOuterClass.TraceContext.Builder |
mergeFrom(com.google.protobuf.Message other) |
TraceContextOuterClass.TraceContext.Builder |
mergeFrom(TraceContextOuterClass.TraceContext other) |
TraceContextOuterClass.TraceContext.Builder |
mergeParentSpanId(com.google.protobuf.UInt64Value value)
The ParentSpanId is 64-bit in length and indicates the position of the parent operation in the trace tree.
|
TraceContextOuterClass.TraceContext.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TraceContextOuterClass.TraceContext.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
TraceContextOuterClass.TraceContext.Builder |
setParentSpanId(com.google.protobuf.UInt64Value.Builder builderForValue)
The ParentSpanId is 64-bit in length and indicates the position of the parent operation in the trace tree.
|
TraceContextOuterClass.TraceContext.Builder |
setParentSpanId(com.google.protobuf.UInt64Value value)
The ParentSpanId is 64-bit in length and indicates the position of the parent operation in the trace tree.
|
TraceContextOuterClass.TraceContext.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
TraceContextOuterClass.TraceContext.Builder |
setSampled(boolean value)
When the sampled decision is accept, report this span to the tracing system.
|
TraceContextOuterClass.TraceContext.Builder |
setSpanId(long value)
The SpanId is 64-bit in length and indicates the position of the current operation in the trace tree.
|
TraceContextOuterClass.TraceContext.Builder |
setTraceId(long value)
The TraceId is 64 or 128-bit in length and indicates the overall ID of the trace.
|
TraceContextOuterClass.TraceContext.Builder |
setTraceIdHigh(long value)
If present, this is the high 64 bits of the 128-bit identifier.
|
TraceContextOuterClass.TraceContext.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<TraceContextOuterClass.TraceContext.Builder>
public TraceContextOuterClass.TraceContext.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<TraceContextOuterClass.TraceContext.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<TraceContextOuterClass.TraceContext.Builder>
public TraceContextOuterClass.TraceContext getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public TraceContextOuterClass.TraceContext build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public TraceContextOuterClass.TraceContext buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public TraceContextOuterClass.TraceContext.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<TraceContextOuterClass.TraceContext.Builder>
public TraceContextOuterClass.TraceContext.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<TraceContextOuterClass.TraceContext.Builder>
public TraceContextOuterClass.TraceContext.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<TraceContextOuterClass.TraceContext.Builder>
public TraceContextOuterClass.TraceContext.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<TraceContextOuterClass.TraceContext.Builder>
public TraceContextOuterClass.TraceContext.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<TraceContextOuterClass.TraceContext.Builder>
public TraceContextOuterClass.TraceContext.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<TraceContextOuterClass.TraceContext.Builder>
public TraceContextOuterClass.TraceContext.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<TraceContextOuterClass.TraceContext.Builder>
public TraceContextOuterClass.TraceContext.Builder mergeFrom(TraceContextOuterClass.TraceContext other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<TraceContextOuterClass.TraceContext.Builder>
public TraceContextOuterClass.TraceContext.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<TraceContextOuterClass.TraceContext.Builder>
java.io.IOException
public long getTraceIdHigh()
If present, this is the high 64 bits of the 128-bit identifier. Otherwise the trace ID is 64 bits long.
uint64 trace_id_high = 1 [json_name = "traceIdHigh", jstype = JS_STRING];
getTraceIdHigh
in interface TraceContextOuterClass.TraceContextOrBuilder
public TraceContextOuterClass.TraceContext.Builder setTraceIdHigh(long value)
If present, this is the high 64 bits of the 128-bit identifier. Otherwise the trace ID is 64 bits long.
uint64 trace_id_high = 1 [json_name = "traceIdHigh", jstype = JS_STRING];
value
- The traceIdHigh to set.public TraceContextOuterClass.TraceContext.Builder clearTraceIdHigh()
If present, this is the high 64 bits of the 128-bit identifier. Otherwise the trace ID is 64 bits long.
uint64 trace_id_high = 1 [json_name = "traceIdHigh", jstype = JS_STRING];
public long getTraceId()
The TraceId is 64 or 128-bit in length and indicates the overall ID of the trace. Every span in a trace shares this ID.
uint64 trace_id = 2 [json_name = "traceId", jstype = JS_STRING];
getTraceId
in interface TraceContextOuterClass.TraceContextOrBuilder
public TraceContextOuterClass.TraceContext.Builder setTraceId(long value)
The TraceId is 64 or 128-bit in length and indicates the overall ID of the trace. Every span in a trace shares this ID.
uint64 trace_id = 2 [json_name = "traceId", jstype = JS_STRING];
value
- The traceId to set.public TraceContextOuterClass.TraceContext.Builder clearTraceId()
The TraceId is 64 or 128-bit in length and indicates the overall ID of the trace. Every span in a trace shares this ID.
uint64 trace_id = 2 [json_name = "traceId", jstype = JS_STRING];
public long getSpanId()
The SpanId is 64-bit in length and indicates the position of the current operation in the trace tree. The value should not be interpreted: it may or may not be derived from the value of the TraceId.
uint64 span_id = 3 [json_name = "spanId", jstype = JS_STRING];
getSpanId
in interface TraceContextOuterClass.TraceContextOrBuilder
public TraceContextOuterClass.TraceContext.Builder setSpanId(long value)
The SpanId is 64-bit in length and indicates the position of the current operation in the trace tree. The value should not be interpreted: it may or may not be derived from the value of the TraceId.
uint64 span_id = 3 [json_name = "spanId", jstype = JS_STRING];
value
- The spanId to set.public TraceContextOuterClass.TraceContext.Builder clearSpanId()
The SpanId is 64-bit in length and indicates the position of the current operation in the trace tree. The value should not be interpreted: it may or may not be derived from the value of the TraceId.
uint64 span_id = 3 [json_name = "spanId", jstype = JS_STRING];
public boolean hasParentSpanId()
The ParentSpanId is 64-bit in length and indicates the position of the parent operation in the trace tree. When the span is the root of the trace tree, the ParentSpanId is absent.
.google.protobuf.UInt64Value parent_span_id = 4 [json_name = "parentSpanId"];
hasParentSpanId
in interface TraceContextOuterClass.TraceContextOrBuilder
public com.google.protobuf.UInt64Value getParentSpanId()
The ParentSpanId is 64-bit in length and indicates the position of the parent operation in the trace tree. When the span is the root of the trace tree, the ParentSpanId is absent.
.google.protobuf.UInt64Value parent_span_id = 4 [json_name = "parentSpanId"];
getParentSpanId
in interface TraceContextOuterClass.TraceContextOrBuilder
public TraceContextOuterClass.TraceContext.Builder setParentSpanId(com.google.protobuf.UInt64Value value)
The ParentSpanId is 64-bit in length and indicates the position of the parent operation in the trace tree. When the span is the root of the trace tree, the ParentSpanId is absent.
.google.protobuf.UInt64Value parent_span_id = 4 [json_name = "parentSpanId"];
public TraceContextOuterClass.TraceContext.Builder setParentSpanId(com.google.protobuf.UInt64Value.Builder builderForValue)
The ParentSpanId is 64-bit in length and indicates the position of the parent operation in the trace tree. When the span is the root of the trace tree, the ParentSpanId is absent.
.google.protobuf.UInt64Value parent_span_id = 4 [json_name = "parentSpanId"];
public TraceContextOuterClass.TraceContext.Builder mergeParentSpanId(com.google.protobuf.UInt64Value value)
The ParentSpanId is 64-bit in length and indicates the position of the parent operation in the trace tree. When the span is the root of the trace tree, the ParentSpanId is absent.
.google.protobuf.UInt64Value parent_span_id = 4 [json_name = "parentSpanId"];
public TraceContextOuterClass.TraceContext.Builder clearParentSpanId()
The ParentSpanId is 64-bit in length and indicates the position of the parent operation in the trace tree. When the span is the root of the trace tree, the ParentSpanId is absent.
.google.protobuf.UInt64Value parent_span_id = 4 [json_name = "parentSpanId"];
public com.google.protobuf.UInt64Value.Builder getParentSpanIdBuilder()
The ParentSpanId is 64-bit in length and indicates the position of the parent operation in the trace tree. When the span is the root of the trace tree, the ParentSpanId is absent.
.google.protobuf.UInt64Value parent_span_id = 4 [json_name = "parentSpanId"];
public com.google.protobuf.UInt64ValueOrBuilder getParentSpanIdOrBuilder()
The ParentSpanId is 64-bit in length and indicates the position of the parent operation in the trace tree. When the span is the root of the trace tree, the ParentSpanId is absent.
.google.protobuf.UInt64Value parent_span_id = 4 [json_name = "parentSpanId"];
getParentSpanIdOrBuilder
in interface TraceContextOuterClass.TraceContextOrBuilder
public boolean getSampled()
When the sampled decision is accept, report this span to the tracing system. When it is reject, do not. When B3 attributes are sent without a sampled decision, the receiver should make one. Once the sampling decision is made, the same value should be consistently sent downstream.
bool sampled = 5 [json_name = "sampled"];
getSampled
in interface TraceContextOuterClass.TraceContextOrBuilder
public TraceContextOuterClass.TraceContext.Builder setSampled(boolean value)
When the sampled decision is accept, report this span to the tracing system. When it is reject, do not. When B3 attributes are sent without a sampled decision, the receiver should make one. Once the sampling decision is made, the same value should be consistently sent downstream.
bool sampled = 5 [json_name = "sampled"];
value
- The sampled to set.public TraceContextOuterClass.TraceContext.Builder clearSampled()
When the sampled decision is accept, report this span to the tracing system. When it is reject, do not. When B3 attributes are sent without a sampled decision, the receiver should make one. Once the sampling decision is made, the same value should be consistently sent downstream.
bool sampled = 5 [json_name = "sampled"];
public final TraceContextOuterClass.TraceContext.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<TraceContextOuterClass.TraceContext.Builder>
public final TraceContextOuterClass.TraceContext.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<TraceContextOuterClass.TraceContext.Builder>