Interface ProfileContainerOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ProfileContainer,ProfileContainer.Builder
public interface ProfileContainerOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetAttributes(int index) attributes is a collection of key/value pairs.intattributes is a collection of key/value pairs.attributes is a collection of key/value pairs.getAttributesOrBuilder(int index) attributes is a collection of key/value pairs.List<? extends KeyValueOrBuilder>attributes is a collection of key/value pairs.intdropped_attributes_count is the number of attributes that were discarded.longend_time_unix_nano is the end time of the profile.com.google.protobuf.ByteStringOriginal payload can be stored in this field.Specifies format of the original payload.com.google.protobuf.ByteStringSpecifies format of the original payload.This is a reference to a pprof profile.com.google.protobuf.ByteStringA globally unique identifier for a profile.This is a reference to a pprof profile.longstart_time_unix_nano is the start time of the profile.booleanThis is a reference to a pprof profile.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getProfileId
com.google.protobuf.ByteString getProfileId()A globally unique identifier for a profile. The ID is a 16-byte array. An ID with all zeroes is considered invalid. This field is required.
bytes profile_id = 1;- Returns:
- The profileId.
-
getStartTimeUnixNano
long getStartTimeUnixNano()start_time_unix_nano is the start time of the profile. Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. This field is semantically required and it is expected that end_time >= start_time.
fixed64 start_time_unix_nano = 2;- Returns:
- The startTimeUnixNano.
-
getEndTimeUnixNano
long getEndTimeUnixNano()end_time_unix_nano is the end time of the profile. Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. This field is semantically required and it is expected that end_time >= start_time.
fixed64 end_time_unix_nano = 3;- Returns:
- The endTimeUnixNano.
-
getAttributesList
attributes is a collection of key/value pairs. Note, global attributes like server name can be set using the resource API. Examples of attributes: "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36" "/http/server_latency": 300 "abc.com/myattribute": true "abc.com/score": 10.239 The OpenTelemetry API specification further restricts the allowed value types: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).repeated .opentelemetry.proto.common.v1.KeyValue attributes = 4; -
getAttributes
attributes is a collection of key/value pairs. Note, global attributes like server name can be set using the resource API. Examples of attributes: "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36" "/http/server_latency": 300 "abc.com/myattribute": true "abc.com/score": 10.239 The OpenTelemetry API specification further restricts the allowed value types: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).repeated .opentelemetry.proto.common.v1.KeyValue attributes = 4; -
getAttributesCount
int getAttributesCount()attributes is a collection of key/value pairs. Note, global attributes like server name can be set using the resource API. Examples of attributes: "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36" "/http/server_latency": 300 "abc.com/myattribute": true "abc.com/score": 10.239 The OpenTelemetry API specification further restricts the allowed value types: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).repeated .opentelemetry.proto.common.v1.KeyValue attributes = 4; -
getAttributesOrBuilderList
List<? extends KeyValueOrBuilder> getAttributesOrBuilderList()attributes is a collection of key/value pairs. Note, global attributes like server name can be set using the resource API. Examples of attributes: "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36" "/http/server_latency": 300 "abc.com/myattribute": true "abc.com/score": 10.239 The OpenTelemetry API specification further restricts the allowed value types: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).repeated .opentelemetry.proto.common.v1.KeyValue attributes = 4; -
getAttributesOrBuilder
attributes is a collection of key/value pairs. Note, global attributes like server name can be set using the resource API. Examples of attributes: "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36" "/http/server_latency": 300 "abc.com/myattribute": true "abc.com/score": 10.239 The OpenTelemetry API specification further restricts the allowed value types: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).repeated .opentelemetry.proto.common.v1.KeyValue attributes = 4; -
getDroppedAttributesCount
int getDroppedAttributesCount()dropped_attributes_count is the number of attributes that were discarded. Attributes can be discarded because their keys are too long or because there are too many attributes. If this value is 0, then no attributes were dropped.
uint32 dropped_attributes_count = 5;- Returns:
- The droppedAttributesCount.
-
getOriginalPayloadFormat
String getOriginalPayloadFormat()Specifies format of the original payload. Common values are defined in semantic conventions. [required if original_payload is present]
string original_payload_format = 6;- Returns:
- The originalPayloadFormat.
-
getOriginalPayloadFormatBytes
com.google.protobuf.ByteString getOriginalPayloadFormatBytes()Specifies format of the original payload. Common values are defined in semantic conventions. [required if original_payload is present]
string original_payload_format = 6;- Returns:
- The bytes for originalPayloadFormat.
-
getOriginalPayload
com.google.protobuf.ByteString getOriginalPayload()Original payload can be stored in this field. This can be useful for users who want to get the original payload. Formats such as JFR are highly extensible and can contain more information than what is defined in this spec. Inclusion of original payload should be configurable by the user. Default behavior should be to not include the original payload. If the original payload is in pprof format, it SHOULD not be included in this field. The field is optional, however if it is present `profile` MUST be present and contain the same profiling information.
bytes original_payload = 7;- Returns:
- The originalPayload.
-
hasProfile
boolean hasProfile()This is a reference to a pprof profile. Required, even when original_payload is present.
.opentelemetry.proto.profiles.v1experimental.Profile profile = 8;- Returns:
- Whether the profile field is set.
-
getProfile
Profile getProfile()This is a reference to a pprof profile. Required, even when original_payload is present.
.opentelemetry.proto.profiles.v1experimental.Profile profile = 8;- Returns:
- The profile.
-
getProfileOrBuilder
ProfileOrBuilder getProfileOrBuilder()This is a reference to a pprof profile. Required, even when original_payload is present.
.opentelemetry.proto.profiles.v1experimental.Profile profile = 8;
-