-
Notifications
You must be signed in to change notification settings - Fork 888
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide clarity on how non-string attributes are supposed to be provided through OTEL_RESOURCE_ATTRIBUTES #2857
Provide clarity on how non-string attributes are supposed to be provided through OTEL_RESOURCE_ATTRIBUTES #2857
Comments
Let's discuss in the next Spec Sig call |
I have mixed feelings about this as there's the risk of ending up with an over engineered item for this env var. For what is worth I've been mostly users using this to set strings only. Let's talk next Tuesday about this. |
A related issue in the OpenTelemetry .NET project open-telemetry/opentelemetry-dotnet#3670 (comment). |
Since the semantic conventions also contain the types of attributes, wouldn't it be doable to do the mapping there? So if I have something like This solution of course does not provide a fix for |
FYI #2891 (comment) |
…#17503) Allow string resource attributes to be used in some resource attributes of type slice in the awsxray exporter so that it is possible to set them using the OTEL_RESOURCE_ATTRIBUTES environment variable. This is a major source of pain among users since it is not possible to set slice resource attributes using OTEL_RESOURCE_ATTRIBUTES open-telemetry/opentelemetry-specification#2857 Signed-off-by: Raphael Silva <[email protected]> Co-authored-by: William Armiros <[email protected]>
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 theOTEL_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
.The text was updated successfully, but these errors were encountered: