Class ProcessContext.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ProcessContext.Builder>
io.opentelemetry.proto.processcontext.v1development.ProcessContext.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ProcessContextOrBuilder,Cloneable
- Enclosing class:
- ProcessContext
public static final class ProcessContext.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ProcessContext.Builder>
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-
Method Summary
Modifier and TypeMethodDescriptionaddAllAttributes(Iterable<? extends KeyValue> values) Additional attributes to share with external readers that are not part of the standard Resource.addAttributes(int index, KeyValue value) Additional attributes to share with external readers that are not part of the standard Resource.addAttributes(int index, KeyValue.Builder builderForValue) Additional attributes to share with external readers that are not part of the standard Resource.addAttributes(KeyValue value) Additional attributes to share with external readers that are not part of the standard Resource.addAttributes(KeyValue.Builder builderForValue) Additional 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.addAttributesBuilder(int index) Additional attributes to share with external readers that are not part of the standard Resource.build()clear()Additional attributes to share with external readers that are not part of the standard Resource.The resource for this process.getAttributes(int index) Additional attributes to share with external readers that are not part of the standard Resource.getAttributesBuilder(int index) Additional 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.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 final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe resource for this process.The resource for this process.The resource for this process.booleanThe resource for this process.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(ProcessContext other) mergeResource(Resource value) The resource for this process.removeAttributes(int index) Additional attributes to share with external readers that are not part of the standard Resource.setAttributes(int index, KeyValue value) Additional attributes to share with external readers that are not part of the standard Resource.setAttributes(int index, KeyValue.Builder builderForValue) Additional attributes to share with external readers that are not part of the standard Resource.setResource(Resource value) The resource for this process.setResource(Resource.Builder builderForValue) The resource for this process.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ProcessContext.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ProcessContext.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ProcessContext.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ProcessContext.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ProcessContext.Builder>
-
mergeFrom
public ProcessContext.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ProcessContext.Builder>- Throws:
IOException
-
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.
-
setResource
The resource for this process. If this field is not set then no resource info is known.
.opentelemetry.proto.resource.v1.Resource resource = 1; -
setResource
The resource for this process. If this field is not set then no resource info is known.
.opentelemetry.proto.resource.v1.Resource resource = 1; -
mergeResource
The resource for this process. If this field is not set then no resource info is known.
.opentelemetry.proto.resource.v1.Resource resource = 1; -
clearResource
The resource for this process. If this field is not set then no resource info is known.
.opentelemetry.proto.resource.v1.Resource resource = 1; -
getResourceBuilder
The resource for this process. If this field is not set then no resource info is known.
.opentelemetry.proto.resource.v1.Resource resource = 1; -
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
-
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
-
setAttributes
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; -
setAttributes
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; -
addAttributes
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; -
addAttributes
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; -
addAttributes
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; -
addAttributes
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; -
addAllAttributes
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; -
clearAttributes
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; -
removeAttributes
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; -
getAttributesBuilder
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; -
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
-
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
-
addAttributesBuilder
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; -
addAttributesBuilder
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; -
getAttributesBuilderList
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;
-