Package io.opentelemetry.proto.common.v1
Interface InstrumentationScopeOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
InstrumentationScope,InstrumentationScope.Builder
public interface InstrumentationScopeOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetAttributes(int index) Additional attributes that describe the scope.intAdditional attributes that describe the scope.Additional attributes that describe the scope.intThe number of attributes that were discarded.getName()A name denoting the Instrumentation scope.com.google.protobuf.ByteStringA name denoting the Instrumentation scope.Defines the version of the instrumentation scope.com.google.protobuf.ByteStringDefines the version of the instrumentation scope.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getName
String getName()A name denoting the Instrumentation scope. An empty instrumentation scope name means the name is unknown.
string name = 1 [json_name = "name"];- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()A name denoting the Instrumentation scope. An empty instrumentation scope name means the name is unknown.
string name = 1 [json_name = "name"];- Returns:
- The bytes for name.
-
getVersion
String getVersion()Defines the version of the instrumentation scope. An empty instrumentation scope version means the version is unknown.
string version = 2 [json_name = "version"];- Returns:
- The version.
-
getVersionBytes
com.google.protobuf.ByteString getVersionBytes()Defines the version of the instrumentation scope. An empty instrumentation scope version means the version is unknown.
string version = 2 [json_name = "version"];- Returns:
- The bytes for version.
-
getAttributesList
Additional attributes that describe the scope. [Optional]. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3 [json_name = "attributes"]; -
getAttributes
Additional attributes that describe the scope. [Optional]. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3 [json_name = "attributes"]; -
getAttributesCount
int getAttributesCount()Additional attributes that describe the scope. [Optional]. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3 [json_name = "attributes"]; -
getDroppedAttributesCount
int getDroppedAttributesCount()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 = 4 [json_name = "droppedAttributesCount"];- Returns:
- The droppedAttributesCount.
-