Opentelemetry-specification: Resource initialization from environment variable

Created on 30 Mar 2020  路  7Comments  路  Source: open-telemetry/opentelemetry-specification

In the JS SIG we are adding the ability to create a Resource with labels specified by environment variable. This was a feature in OpenCensus, but it is currently unspecified for OpenTelemetry.

While porting this functionality over, we have kept the same value format, but changed the environment variable name from OC_RESOURCE_LABELS to OTEL_RESOURCE_LABELS.

I'm opening this issue as a point of discussion so that we can standardize this behavior between projects.

p1 required-for-ga resource

Most helpful comment

Consistency not just in the name but in behavior would be nice.

All 7 comments

In the Java repo, we converted it to OTEL_RESOURCE_ATTRIBUTES, so yes, some consistency would be great. :)

Consistency not just in the name but in behavior would be nice.

Related: #505.

from the spec sig mtg today, talked about this and assigned to @james-bebbington . will this be part of the oteps-111 work?

from the spec sig mtg today, talked about this and assigned to @james-bebbington . will this be part of the oteps-111 work?

Yes it should be. I will write up a spec for this shortly

This issue appears to be addressed. @james-bebbington @mwear can we close it?

This was addressed in #811. We've standardized on OTEL_RESOURCE_ATTRIBUTES. I'll close this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mateuszrzeszutek picture mateuszrzeszutek  路  4Comments

carlosalberto picture carlosalberto  路  4Comments

iNikem picture iNikem  路  4Comments

anuraaga picture anuraaga  路  5Comments

pavolloffay picture pavolloffay  路  4Comments