open-telemetry / opentelemetry-swift

OpenTelemetry API for Swift
https://opentelemetry.io/docs/instrumentation/swift/
Apache License 2.0
207 stars 124 forks source link

AttributeValues should support Arrays of type `[Any]` #547

Open bryce-b opened 2 months ago

bryce-b commented 2 months ago

per the spec https://opentelemetry.io/docs/specs/otel/logs/data-model/#type-any

but our AttributeValues only support arrays of discrete types. https://github.com/open-telemetry/opentelemetry-swift/blob/main/Sources/OpenTelemetryApi/Common/AttributeValue.swift#L14 We should add an "AttributeArray" that behaves similarly to AttributeSet.