Azure / Azure/azure-sdk-for-java
[FEATURE REQ] Add API(s) to com.azure.core.util.tracing.Tracer for attributes with array values
Open
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
Assessment
This issue has not been assessed yet.