Package io.opentelemetry.proto.trace.v1
Class TraceConfig
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.opentelemetry.proto.trace.v1.TraceConfig
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,TraceConfigOrBuilder,Serializable
public final class TraceConfig extends com.google.protobuf.GeneratedMessageV3 implements TraceConfigOrBuilder
Global configuration of the trace service. All fields must be specified, or the default (zero) values will be used for each type.
Protobuf typeopentelemetry.proto.trace.v1.TraceConfig- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTraceConfig.BuilderGlobal configuration of the trace service.static classTraceConfig.SamplerCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTANT_SAMPLER_FIELD_NUMBERstatic intMAX_NUMBER_OF_ATTRIBUTES_FIELD_NUMBERstatic intMAX_NUMBER_OF_ATTRIBUTES_PER_LINK_FIELD_NUMBERstatic intMAX_NUMBER_OF_ATTRIBUTES_PER_TIMED_EVENT_FIELD_NUMBERstatic intMAX_NUMBER_OF_LINKS_FIELD_NUMBERstatic intMAX_NUMBER_OF_TIMED_EVENTS_FIELD_NUMBERstatic intRATE_LIMITING_SAMPLER_FIELD_NUMBERstatic intTRACE_ID_RATIO_BASED_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)ConstantSamplergetConstantSampler().opentelemetry.proto.trace.v1.ConstantSampler constant_sampler = 1;ConstantSamplerOrBuildergetConstantSamplerOrBuilder().opentelemetry.proto.trace.v1.ConstantSampler constant_sampler = 1;static TraceConfiggetDefaultInstance()TraceConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()longgetMaxNumberOfAttributes()The global default max number of attributes per span.longgetMaxNumberOfAttributesPerLink()The global default max number of attributes per span.longgetMaxNumberOfAttributesPerTimedEvent()The global default max number of attributes per timed event.longgetMaxNumberOfLinks()The global default max number of link entries per span.longgetMaxNumberOfTimedEvents()The global default max number of annotation events per span.com.google.protobuf.Parser<TraceConfig>getParserForType()RateLimitingSamplergetRateLimitingSampler().opentelemetry.proto.trace.v1.RateLimitingSampler rate_limiting_sampler = 3;RateLimitingSamplerOrBuildergetRateLimitingSamplerOrBuilder().opentelemetry.proto.trace.v1.RateLimitingSampler rate_limiting_sampler = 3;TraceConfig.SamplerCasegetSamplerCase()intgetSerializedSize()TraceIdRatioBasedgetTraceIdRatioBased().opentelemetry.proto.trace.v1.TraceIdRatioBased trace_id_ratio_based = 2;TraceIdRatioBasedOrBuildergetTraceIdRatioBasedOrBuilder().opentelemetry.proto.trace.v1.TraceIdRatioBased trace_id_ratio_based = 2;com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasConstantSampler().opentelemetry.proto.trace.v1.ConstantSampler constant_sampler = 1;inthashCode()booleanhasRateLimitingSampler().opentelemetry.proto.trace.v1.RateLimitingSampler rate_limiting_sampler = 3;booleanhasTraceIdRatioBased().opentelemetry.proto.trace.v1.TraceIdRatioBased trace_id_ratio_based = 2;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static TraceConfig.BuildernewBuilder()static TraceConfig.BuildernewBuilder(TraceConfig prototype)TraceConfig.BuildernewBuilderForType()protected TraceConfig.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static TraceConfigparseDelimitedFrom(InputStream input)static TraceConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TraceConfigparseFrom(byte[] data)static TraceConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TraceConfigparseFrom(com.google.protobuf.ByteString data)static TraceConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TraceConfigparseFrom(com.google.protobuf.CodedInputStream input)static TraceConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TraceConfigparseFrom(InputStream input)static TraceConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TraceConfigparseFrom(ByteBuffer data)static TraceConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<TraceConfig>parser()TraceConfig.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
CONSTANT_SAMPLER_FIELD_NUMBER
public static final int CONSTANT_SAMPLER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRACE_ID_RATIO_BASED_FIELD_NUMBER
public static final int TRACE_ID_RATIO_BASED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RATE_LIMITING_SAMPLER_FIELD_NUMBER
public static final int RATE_LIMITING_SAMPLER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_NUMBER_OF_ATTRIBUTES_FIELD_NUMBER
public static final int MAX_NUMBER_OF_ATTRIBUTES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_NUMBER_OF_TIMED_EVENTS_FIELD_NUMBER
public static final int MAX_NUMBER_OF_TIMED_EVENTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_NUMBER_OF_ATTRIBUTES_PER_TIMED_EVENT_FIELD_NUMBER
public static final int MAX_NUMBER_OF_ATTRIBUTES_PER_TIMED_EVENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_NUMBER_OF_LINKS_FIELD_NUMBER
public static final int MAX_NUMBER_OF_LINKS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_NUMBER_OF_ATTRIBUTES_PER_LINK_FIELD_NUMBER
public static final int MAX_NUMBER_OF_ATTRIBUTES_PER_LINK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getSamplerCase
public TraceConfig.SamplerCase getSamplerCase()
- Specified by:
getSamplerCasein interfaceTraceConfigOrBuilder
-
hasConstantSampler
public boolean hasConstantSampler()
.opentelemetry.proto.trace.v1.ConstantSampler constant_sampler = 1;- Specified by:
hasConstantSamplerin interfaceTraceConfigOrBuilder- Returns:
- Whether the constantSampler field is set.
-
getConstantSampler
public ConstantSampler getConstantSampler()
.opentelemetry.proto.trace.v1.ConstantSampler constant_sampler = 1;- Specified by:
getConstantSamplerin interfaceTraceConfigOrBuilder- Returns:
- The constantSampler.
-
getConstantSamplerOrBuilder
public ConstantSamplerOrBuilder getConstantSamplerOrBuilder()
.opentelemetry.proto.trace.v1.ConstantSampler constant_sampler = 1;- Specified by:
getConstantSamplerOrBuilderin interfaceTraceConfigOrBuilder
-
hasTraceIdRatioBased
public boolean hasTraceIdRatioBased()
.opentelemetry.proto.trace.v1.TraceIdRatioBased trace_id_ratio_based = 2;- Specified by:
hasTraceIdRatioBasedin interfaceTraceConfigOrBuilder- Returns:
- Whether the traceIdRatioBased field is set.
-
getTraceIdRatioBased
public TraceIdRatioBased getTraceIdRatioBased()
.opentelemetry.proto.trace.v1.TraceIdRatioBased trace_id_ratio_based = 2;- Specified by:
getTraceIdRatioBasedin interfaceTraceConfigOrBuilder- Returns:
- The traceIdRatioBased.
-
getTraceIdRatioBasedOrBuilder
public TraceIdRatioBasedOrBuilder getTraceIdRatioBasedOrBuilder()
.opentelemetry.proto.trace.v1.TraceIdRatioBased trace_id_ratio_based = 2;- Specified by:
getTraceIdRatioBasedOrBuilderin interfaceTraceConfigOrBuilder
-
hasRateLimitingSampler
public boolean hasRateLimitingSampler()
.opentelemetry.proto.trace.v1.RateLimitingSampler rate_limiting_sampler = 3;- Specified by:
hasRateLimitingSamplerin interfaceTraceConfigOrBuilder- Returns:
- Whether the rateLimitingSampler field is set.
-
getRateLimitingSampler
public RateLimitingSampler getRateLimitingSampler()
.opentelemetry.proto.trace.v1.RateLimitingSampler rate_limiting_sampler = 3;- Specified by:
getRateLimitingSamplerin interfaceTraceConfigOrBuilder- Returns:
- The rateLimitingSampler.
-
getRateLimitingSamplerOrBuilder
public RateLimitingSamplerOrBuilder getRateLimitingSamplerOrBuilder()
.opentelemetry.proto.trace.v1.RateLimitingSampler rate_limiting_sampler = 3;- Specified by:
getRateLimitingSamplerOrBuilderin interfaceTraceConfigOrBuilder
-
getMaxNumberOfAttributes
public long getMaxNumberOfAttributes()
The global default max number of attributes per span.
int64 max_number_of_attributes = 4;- Specified by:
getMaxNumberOfAttributesin interfaceTraceConfigOrBuilder- Returns:
- The maxNumberOfAttributes.
-
getMaxNumberOfTimedEvents
public long getMaxNumberOfTimedEvents()
The global default max number of annotation events per span.
int64 max_number_of_timed_events = 5;- Specified by:
getMaxNumberOfTimedEventsin interfaceTraceConfigOrBuilder- Returns:
- The maxNumberOfTimedEvents.
-
getMaxNumberOfAttributesPerTimedEvent
public long getMaxNumberOfAttributesPerTimedEvent()
The global default max number of attributes per timed event.
int64 max_number_of_attributes_per_timed_event = 6;- Specified by:
getMaxNumberOfAttributesPerTimedEventin interfaceTraceConfigOrBuilder- Returns:
- The maxNumberOfAttributesPerTimedEvent.
-
getMaxNumberOfLinks
public long getMaxNumberOfLinks()
The global default max number of link entries per span.
int64 max_number_of_links = 7;- Specified by:
getMaxNumberOfLinksin interfaceTraceConfigOrBuilder- Returns:
- The maxNumberOfLinks.
-
getMaxNumberOfAttributesPerLink
public long getMaxNumberOfAttributesPerLink()
The global default max number of attributes per span.
int64 max_number_of_attributes_per_link = 8;- Specified by:
getMaxNumberOfAttributesPerLinkin interfaceTraceConfigOrBuilder- Returns:
- The maxNumberOfAttributesPerLink.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static TraceConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TraceConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TraceConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TraceConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TraceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TraceConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TraceConfig parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static TraceConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static TraceConfig parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static TraceConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static TraceConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static TraceConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public TraceConfig.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static TraceConfig.Builder newBuilder()
-
newBuilder
public static TraceConfig.Builder newBuilder(TraceConfig prototype)
-
toBuilder
public TraceConfig.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected TraceConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static TraceConfig getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<TraceConfig> parser()
-
getParserForType
public com.google.protobuf.Parser<TraceConfig> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public TraceConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-