3.7.0 (latest) 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.3.0 2.2.0

    public sealed class Span.Types.Attributes : IMessage<Span.Types.Attributes>, IEquatable<Span.Types.Attributes>, IDeepCloneable<Span.Types.Attributes>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Trace v2 API class Span.Types.Attributes.

A set of attributes as key-value pairs.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> Span.Types.Attributes

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[Span](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.md.txt)[Attributes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.Attributes.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Span](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.md.txt)[Attributes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.Attributes.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[Span](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.md.txt)[Attributes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.Attributes.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Trace.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.md.txt)

## Assembly

Google.Cloud.Trace.V2.dll

## Constructors

### Attributes()

    public Attributes()

### Attributes(Attributes)

    public Attributes(Span.Types.Attributes other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `SpanTypesAttributes` |

## Properties

### AttributeMap

    public MapField<string, AttributeValue> AttributeMap { get; }

A set of attributes. Each attribute's key can be up to 128 bytes
long. The value can be a string up to 256 bytes, a signed 64-bit integer,
or the boolean values `true` or `false`. For example:

    "/instance_id": { "string_value": { "value": "my-instance" } }
    "/http/request_bytes": { "int_value": 300 }
    "example.com/myattribute": { "bool_value": false }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MapFieldstringAttributeValue` |   |

### DroppedAttributesCount

    public int DroppedAttributesCount { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |