<PackageReference Include="OpenTelemetry.Api" Version="1.15.3" />

OpenTelemetry.Trace.SpanAttributes

public class SpanAttributes
A class that represents the span attributes. Read more here https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute.
public SpanAttributes()

Initializes a new instance of the SpanAttributes class.

public SpanAttributes(IEnumerable<KeyValuePair<string, object>> attributes)

Initializes a new instance of the SpanAttributes class.

public void Add(string key, long value)

Add entry to the attributes.

public void Add(string key, string value)

Add entry to the attributes.

public void Add(string key, bool value)

Add entry to the attributes.

public void Add(string key, double value)

Add entry to the attributes.

public void Add(string key, long[] values)

Add entry to the attributes.

public void Add(string key, string[] values)

Add entry to the attributes.

public void Add(string key, bool[] values)

Add entry to the attributes.

public void Add(string key, double[] values)

Add entry to the attributes.