-
Notifications
You must be signed in to change notification settings - Fork 828
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
chore!: refer to resource labels as attributes #1419
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1419 +/- ##
=======================================
Coverage 94.11% 94.11%
=======================================
Files 145 145
Lines 4335 4335
Branches 883 883
=======================================
Hits 4080 4080
Misses 255 255
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
/cc @markwolff since your new packages will need to incorporate these changes |
confirm. I'll resolve the conflicts |
* | ||
* @param config The resource detection config with a required logger | ||
*/ | ||
async detect(config: ResourceDetectionConfigWithLogger): Promise<Resource> { | ||
try { | ||
const labelString = process.env.OTEL_RESOURCE_LABELS; | ||
if (!labelString) { | ||
const rawAttributes = process.env.OTEL_RESOURCE_ATTRIBUTES; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering one thing here, above all should this be a part of environment
instead of accessing process.env
directly. I know this under platform node, but still I would be in favour of getting env variables through getEnv()
, I'm fine to do it in next PR as it was already like this before, WDYT ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, but I think it is outside the scope of this PR.
Conventional Commits requires that a ! be appended to the commit type or a footer |
Which problem is this PR solving?
Short description of the changes