public static final class TraceContextOuterClass.TraceContext extends com.google.protobuf.GeneratedMessageV3 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 | Class and Description |
---|---|
static class |
TraceContextOuterClass.TraceContext.Builder
Data structure to propagate Zipkin trace information.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
Modifier and Type | Field and Description |
---|---|
static int |
PARENT_SPAN_ID_FIELD_NUMBER |
static int |
SAMPLED_FIELD_NUMBER |
static int |
SPAN_ID_FIELD_NUMBER |
static int |
TRACE_ID_FIELD_NUMBER |
static int |
TRACE_ID_HIGH_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static TraceContextOuterClass.TraceContext |
getDefaultInstance() |
TraceContextOuterClass.TraceContext |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.UInt64ValueOrBuilder |
getParentSpanIdOrBuilder()
The ParentSpanId is 64-bit in length and indicates the position of the parent operation in the trace tree.
|
com.google.protobuf.Parser<TraceContextOuterClass.TraceContext> |
getParserForType() |
boolean |
getSampled()
When the sampled decision is accept, report this span to the tracing system.
|
int |
getSerializedSize() |
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.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
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() |
static TraceContextOuterClass.TraceContext.Builder |
newBuilder() |
static TraceContextOuterClass.TraceContext.Builder |
newBuilder(TraceContextOuterClass.TraceContext prototype) |
TraceContextOuterClass.TraceContext.Builder |
newBuilderForType() |
protected TraceContextOuterClass.TraceContext.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static TraceContextOuterClass.TraceContext |
parseDelimitedFrom(java.io.InputStream input) |
static TraceContextOuterClass.TraceContext |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TraceContextOuterClass.TraceContext |
parseFrom(byte[] data) |
static TraceContextOuterClass.TraceContext |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TraceContextOuterClass.TraceContext |
parseFrom(java.nio.ByteBuffer data) |
static TraceContextOuterClass.TraceContext |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TraceContextOuterClass.TraceContext |
parseFrom(com.google.protobuf.ByteString data) |
static TraceContextOuterClass.TraceContext |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TraceContextOuterClass.TraceContext |
parseFrom(com.google.protobuf.CodedInputStream input) |
static TraceContextOuterClass.TraceContext |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TraceContextOuterClass.TraceContext |
parseFrom(java.io.InputStream input) |
static TraceContextOuterClass.TraceContext |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<TraceContextOuterClass.TraceContext> |
parser() |
TraceContextOuterClass.TraceContext.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, getSerializedSizeInternal, isInitializedInternal, makeImmutableInternal, mergeFromInternal, toByteArray, toByteString, writeDelimitedTo, writeTo, writeToInternal
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int TRACE_ID_HIGH_FIELD_NUMBER
public static final int TRACE_ID_FIELD_NUMBER
public static final int SPAN_ID_FIELD_NUMBER
public static final int PARENT_SPAN_ID_FIELD_NUMBER
public static final int SAMPLED_FIELD_NUMBER
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class com.google.protobuf.GeneratedMessageV3
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
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 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 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 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 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 final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static TraceContextOuterClass.TraceContext parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TraceContextOuterClass.TraceContext parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TraceContextOuterClass.TraceContext parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TraceContextOuterClass.TraceContext parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TraceContextOuterClass.TraceContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TraceContextOuterClass.TraceContext parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TraceContextOuterClass.TraceContext parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static TraceContextOuterClass.TraceContext parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static TraceContextOuterClass.TraceContext parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static TraceContextOuterClass.TraceContext parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static TraceContextOuterClass.TraceContext parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static TraceContextOuterClass.TraceContext parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public TraceContextOuterClass.TraceContext.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static TraceContextOuterClass.TraceContext.Builder newBuilder()
public static TraceContextOuterClass.TraceContext.Builder newBuilder(TraceContextOuterClass.TraceContext prototype)
public TraceContextOuterClass.TraceContext.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected TraceContextOuterClass.TraceContext.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static TraceContextOuterClass.TraceContext getDefaultInstance()
public static com.google.protobuf.Parser<TraceContextOuterClass.TraceContext> parser()
public com.google.protobuf.Parser<TraceContextOuterClass.TraceContext> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public TraceContextOuterClass.TraceContext getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder