Class ProcessContext
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
io.opentelemetry.proto.processcontext.v1development.ProcessContext
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ProcessContextOrBuilder,Serializable
@Generated
public final class ProcessContext
extends com.google.protobuf.GeneratedMessage
implements ProcessContextOrBuilder
ProcessContext represents the payload for the process context sharing mechanism. This message is designed to be published by OpenTelemetry SDKs via a memory-mapped region, allowing external readers (such as the OpenTelemetry eBPF Profiler) to discover and read resource attributes from instrumented processes without requiring direct integration or process activity. It is not part of OTLP and is not exchanged via the OpenTelemetry Collector. See OTEP 4719 (https://github.com/open-telemetry/opentelemetry-specification/blob/main/oteps/profiles/4719-process-ctx.md) for details of this mechanism. Status: [Development]Protobuf type
opentelemetry.proto.processcontext.v1development.ProcessContext- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProcessContext represents the payload for the process context sharing mechanism.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAttributes(int index) Additional attributes to share with external readers that are not part of the standard Resource.intAdditional attributes to share with external readers that are not part of the standard Resource.Additional attributes to share with external readers that are not part of the standard Resource.getAttributesOrBuilder(int index) Additional attributes to share with external readers that are not part of the standard Resource.List<? extends KeyValueOrBuilder>Additional attributes to share with external readers that are not part of the standard Resource.static ProcessContextstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Parser<ProcessContext>The resource for this process.The resource for this process.intinthashCode()booleanThe resource for this process.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic ProcessContext.Builderstatic ProcessContext.BuildernewBuilder(ProcessContext prototype) protected ProcessContext.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static ProcessContextparseDelimitedFrom(InputStream input) static ProcessContextparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProcessContextparseFrom(byte[] data) static ProcessContextparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProcessContextparseFrom(com.google.protobuf.ByteString data) static ProcessContextparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProcessContextparseFrom(com.google.protobuf.CodedInputStream input) static ProcessContextparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProcessContextparseFrom(InputStream input) static ProcessContextparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProcessContextparseFrom(ByteBuffer data) static ProcessContextparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ProcessContext>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
RESOURCE_FIELD_NUMBER
public static final int RESOURCE_FIELD_NUMBER- See Also:
-
ATTRIBUTES_FIELD_NUMBER
public static final int ATTRIBUTES_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
hasResource
public boolean hasResource()The resource for this process. If this field is not set then no resource info is known.
.opentelemetry.proto.resource.v1.Resource resource = 1;- Specified by:
hasResourcein interfaceProcessContextOrBuilder- Returns:
- Whether the resource field is set.
-
getResource
The resource for this process. If this field is not set then no resource info is known.
.opentelemetry.proto.resource.v1.Resource resource = 1;- Specified by:
getResourcein interfaceProcessContextOrBuilder- Returns:
- The resource.
-
getResourceOrBuilder
The resource for this process. If this field is not set then no resource info is known.
.opentelemetry.proto.resource.v1.Resource resource = 1;- Specified by:
getResourceOrBuilderin interfaceProcessContextOrBuilder
-
getAttributesList
Additional attributes to share with external readers that are not part of the standard Resource. [Optional] This field allows publishers to include supplementary key-value pairs that may be useful for external readers but are not part of the SDK's configured Resource. Consider adding any keys here to the profiles semantic conventions in https://opentelemetry.io/docs/specs/semconv/general/profiles/
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 2;- Specified by:
getAttributesListin interfaceProcessContextOrBuilder
-
getAttributesOrBuilderList
Additional attributes to share with external readers that are not part of the standard Resource. [Optional] This field allows publishers to include supplementary key-value pairs that may be useful for external readers but are not part of the SDK's configured Resource. Consider adding any keys here to the profiles semantic conventions in https://opentelemetry.io/docs/specs/semconv/general/profiles/
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 2;- Specified by:
getAttributesOrBuilderListin interfaceProcessContextOrBuilder
-
getAttributesCount
public int getAttributesCount()Additional attributes to share with external readers that are not part of the standard Resource. [Optional] This field allows publishers to include supplementary key-value pairs that may be useful for external readers but are not part of the SDK's configured Resource. Consider adding any keys here to the profiles semantic conventions in https://opentelemetry.io/docs/specs/semconv/general/profiles/
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 2;- Specified by:
getAttributesCountin interfaceProcessContextOrBuilder
-
getAttributes
Additional attributes to share with external readers that are not part of the standard Resource. [Optional] This field allows publishers to include supplementary key-value pairs that may be useful for external readers but are not part of the SDK's configured Resource. Consider adding any keys here to the profiles semantic conventions in https://opentelemetry.io/docs/specs/semconv/general/profiles/
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 2;- Specified by:
getAttributesin interfaceProcessContextOrBuilder
-
getAttributesOrBuilder
Additional attributes to share with external readers that are not part of the standard Resource. [Optional] This field allows publishers to include supplementary key-value pairs that may be useful for external readers but are not part of the SDK's configured Resource. Consider adding any keys here to the profiles semantic conventions in https://opentelemetry.io/docs/specs/semconv/general/profiles/
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 2;- Specified by:
getAttributesOrBuilderin interfaceProcessContextOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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 ProcessContext parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProcessContext parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProcessContext parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProcessContext parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProcessContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProcessContext parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ProcessContext parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ProcessContext parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ProcessContext parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ProcessContext parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ProcessContext.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-