Azure / Azure/azure-sdk-for-java

[FEATURE REQ] Add API(s) to com.azure.core.util.tracing.Tracer for attributes with array values

Open
#43,408 0 comments 0 reactions 0 assignees View on GitHub
Azure.Core
Dominant language
Java
Stars
2.6k
Forks
2.2k
Avg merge
2d 8h
Merged PRs (30d)
178

Description

The otel supports Span attributes with array values. For example, a string array attribute value can be added to a Span as:

```java
span.setAttribute(AttributeKey.stringArrayKey("animals "), Arrays.asList( "cat", "lion", "tiger"));
```

------------------------------------

Once API is in, update `ChatCompletionClientTracer` in `azure-ai-inference` to use it for the Span attributes - `gen_ai.response.finish_reasons`, `gen_ai.request.stop_sequences`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.