Skip to content

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

@rapphil

Description

@rapphil

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.

Metadata

Metadata

Labels

[label deprecated] triaged-needmoreinfo[label deprecated] The issue is triaged - the OTel community needs more information to decidespec:miscellaneousFor issues that don't match any other spec label

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions