opentelemetry-specification icon indicating copy to clipboard operation
opentelemetry-specification copied to clipboard

Provide clarity on how non-string attributes are supposed to be provided through OTEL_RESOURCE_ATTRIBUTES

Open rapphil opened this issue 3 years ago • 0 comments

What are you trying to achieve?

I'm trying to set a resource attribute that has type []string. However it is not possible to do so through the OTEL_RESOURCE_ATTRIBUTES as it only supports strings for values.

This is specially important for applications that rely on auto instrumentation in which is not possible to set the resource programmatically. (e.g. using the otel java agent)

What did you expect to see?

A clear alternative or a clear note that non-string resource attributes must be set through another mechanism other than OTEL_RESOURCE_ATTRIBUTES.

rapphil avatar Oct 07 '22 18:10 rapphil