public static interface Span.AttributesOrBuilder extends MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
boolean |
containsAttributeMap(java.lang.String key)
The set of attributes.
|
java.util.Map<java.lang.String,AttributeValue> |
getAttributeMap()
Deprecated.
|
int |
getAttributeMapCount()
The set of attributes.
|
java.util.Map<java.lang.String,AttributeValue> |
getAttributeMapMap()
The set of attributes.
|
AttributeValue |
getAttributeMapOrDefault(java.lang.String key,
AttributeValue defaultValue)
The set of attributes.
|
AttributeValue |
getAttributeMapOrThrow(java.lang.String key)
The set of attributes.
|
int |
getDroppedAttributesCount()
The number of attributes that were discarded.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
isInitialized
int getAttributeMapCount()
The set of attributes. Each attribute's key can be up to 128 bytes long. The value can be a string up to 256 bytes, an integer, or the Boolean values `true` and `false`. For example: "/instance_id": "my-instance" "/http/user_agent": "" "/http/request_bytes": 300 "abc.com/myattribute": true
map<string, .google.devtools.cloudtrace.v2.AttributeValue> attribute_map = 1;
boolean containsAttributeMap(java.lang.String key)
The set of attributes. Each attribute's key can be up to 128 bytes long. The value can be a string up to 256 bytes, an integer, or the Boolean values `true` and `false`. For example: "/instance_id": "my-instance" "/http/user_agent": "" "/http/request_bytes": 300 "abc.com/myattribute": true
map<string, .google.devtools.cloudtrace.v2.AttributeValue> attribute_map = 1;
@Deprecated java.util.Map<java.lang.String,AttributeValue> getAttributeMap()
getAttributeMapMap()
instead.java.util.Map<java.lang.String,AttributeValue> getAttributeMapMap()
The set of attributes. Each attribute's key can be up to 128 bytes long. The value can be a string up to 256 bytes, an integer, or the Boolean values `true` and `false`. For example: "/instance_id": "my-instance" "/http/user_agent": "" "/http/request_bytes": 300 "abc.com/myattribute": true
map<string, .google.devtools.cloudtrace.v2.AttributeValue> attribute_map = 1;
AttributeValue getAttributeMapOrDefault(java.lang.String key, AttributeValue defaultValue)
The set of attributes. Each attribute's key can be up to 128 bytes long. The value can be a string up to 256 bytes, an integer, or the Boolean values `true` and `false`. For example: "/instance_id": "my-instance" "/http/user_agent": "" "/http/request_bytes": 300 "abc.com/myattribute": true
map<string, .google.devtools.cloudtrace.v2.AttributeValue> attribute_map = 1;
AttributeValue getAttributeMapOrThrow(java.lang.String key)
The set of attributes. Each attribute's key can be up to 128 bytes long. The value can be a string up to 256 bytes, an integer, or the Boolean values `true` and `false`. For example: "/instance_id": "my-instance" "/http/user_agent": "" "/http/request_bytes": 300 "abc.com/myattribute": true
map<string, .google.devtools.cloudtrace.v2.AttributeValue> attribute_map = 1;
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 all attributes are valid.
int32 dropped_attributes_count = 2;