-
Notifications
You must be signed in to change notification settings - Fork 821
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
feat(sdk-node): add serviceInstanceIdDetector to NodeSDK #4626
Conversation
b7bccf6
to
6dcde28
Compare
6dcde28
to
1991b3c
Compare
109f488
to
c1021db
Compare
c1021db
to
914fd8c
Compare
Rebased branch. @pichlermarc let me know if this implementation is good, so I can add proper documentation on how to use the new detector and the |
95b1573
to
25fdcf8
Compare
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.
looks good 👍
Just a few comments about docs/env var use 🙂
1325021
to
6accadc
Compare
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.
Looks good, just a few nits then this should be good to merge.
Follow up from open-telemetry#4608 Adds the resource detector ServiceInstanceIDDetector on the NodeSDK constructor. It only gets added by default on any of those conditions: - the value `serviceinstance` is part of the list `OTEL_NODE_RESOURCE_DETECTORS` - `OTEL_NODE_EXPERIMENTAL_DEFAULT_SERVICE_INSTANCE_ID` is set to `true`
Signed-off-by: maryliag <[email protected]>
Co-authored-by: Marc Pichler <[email protected]>
6accadc
to
0480298
Compare
nits solved! 😄 |
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.
Thanks 👍
…try#4626) * feat(sdk-node): add serviceInstanceIDDetector to NodeSDK Follow up from open-telemetry#4608 Adds the resource detector ServiceInstanceIDDetector on the NodeSDK constructor. It only gets added by default on any of those conditions: - the value `serviceinstance` is part of the list `OTEL_NODE_RESOURCE_DETECTORS` - `OTEL_NODE_EXPERIMENTAL_DEFAULT_SERVICE_INSTANCE_ID` is set to `true` * remove OTEL_NODE_EXPERIMENTAL_DEFAULT_SERVICE_INSTANCE_ID Signed-off-by: maryliag <[email protected]> * update readme on how to use `OTEL_NODE_RESOURCE_DETECTORS` * feedback from review * Update experimental/packages/opentelemetry-sdk-node/README.md Co-authored-by: Marc Pichler <[email protected]> * feedback from review --------- Signed-off-by: maryliag <[email protected]> Co-authored-by: Marc Pichler <[email protected]>
Follow up from #4608
Adds the resource detector ServiceInstanceIDDetector on the NodeSDK constructor.
It only gets added by default if the value
serviceinstance
is part of the listOTEL_NODE_RESOURCE_DETECTORS