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, mergeFromAndMakeImmutableInternal, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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.TraceContextOrBuilderpublic 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.TraceContextOrBuilderpublic 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.TraceContextOrBuilderpublic 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.TraceContextOrBuilderpublic 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.TraceContextOrBuilderpublic 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.TraceContextOrBuilderpublic 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.TraceContextOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static TraceContextOuterClass.TraceContext parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TraceContextOuterClass.TraceContext parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TraceContextOuterClass.TraceContext parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TraceContextOuterClass.TraceContext parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TraceContextOuterClass.TraceContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TraceContextOuterClass.TraceContext parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TraceContextOuterClass.TraceContext parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static TraceContextOuterClass.TraceContext parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static TraceContextOuterClass.TraceContext parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static TraceContextOuterClass.TraceContext parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static TraceContextOuterClass.TraceContext parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static TraceContextOuterClass.TraceContext parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic TraceContextOuterClass.TraceContext.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic 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.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected TraceContextOuterClass.TraceContext.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public 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.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public TraceContextOuterClass.TraceContext getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder