A primitive type: string, boolean, double precision floating point (IEEE 754-1985) or signed 64 bit integer.
An array of primitive type values. The array MUST be homogeneous, i.e. it MUST NOT contain values of different types. For protocols that do not natively support array values such values SHOULD be represented as JSON strings. There’s also Span attributes: array of primitives · Issue #111 · open-telemetry/opentelemetry-erlang · GitHub which seems to imply that opentelemetry-erlang supports arrays of primitives in span attributes. However when I try to add span attributes with an array
Hey, yea, @'ing me is fine :). Have you checked to make sure it isn’t being dropped on accident by the Erlang/Elixir code? Like by using the stdout trace exporter? If its there then it could be the protobuf conversion (we may even need to update the protobufs used in the exporter). I’ll have to look later, just wanted to throw some stuff out there in case you had time to investigate more before I do later today.
Hm, I think I see a bug in the encoding of arrays that could possibly be the cause – I think the proto, or at least the latest proto, requires the Erlang term before encoding to be {array_value, [{value, {int_value, 1}}, ...]} but we are passing {array_value, [{value, 1}, ...]}. Will need to setup a test to make sure the change works.
* opentelemetry (https://github.com/tsloughter/opentelemetry-erlang)
could not find an app file at "_build/dev/lib/opentelemetry/ebin/opentelemetry.app". Another app file was found in the same directory "_build/dev/lib/opentelemetry/ebin/otel_elixir_tests.app", try changing the dependency name to :otel_elixir_tests
If you know how get your branch running against an app let me know and I’ll give it a test.