Skip to content
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

[sdk-node] add HostDetector to the list of default resource detectors #4282

Closed
pichlermarc opened this issue Nov 10, 2023 · 2 comments · Fixed by #4566
Closed

[sdk-node] add HostDetector to the list of default resource detectors #4282

pichlermarc opened this issue Nov 10, 2023 · 2 comments · Fixed by #4566

Comments

@pichlermarc
Copy link
Member

HostDetector is not part of the default list of resoruce detectors when intantiating NodeSDK.
I propose we add it to the default list alongside the Environment and Process detectors.

Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days.

@maryliag
Copy link
Contributor

as discussed offline, I can take this one 😄

maryliag added a commit to maryliag/opentelemetry-js that referenced this issue Mar 21, 2024
Fixes open-telemetry#4282

- Add `HostDetector` to the list od default resource detectors
- Add test to make sure host and process values are being set by default
- Update from deprecated `sdk.detectResources()` to `sdk.start()` on tests
- Update from deprecated `SemanticResourceAttributes.SERVICE_NAME` to `SEMRESATTRS_SERVICE_NAME` on SDK file
maryliag added a commit to maryliag/opentelemetry-js that referenced this issue Mar 21, 2024
Fixes open-telemetry#4282

- Add `HostDetector` to the list of default resource detectors
- Add test to make sure host and process values are being set by default
- Update from deprecated `sdk.detectResources()` to `sdk.start()` on tests
- Update from deprecated `SemanticResourceAttributes.SERVICE_NAME` to `SEMRESATTRS_SERVICE_NAME` on SDK file
maryliag added a commit to maryliag/opentelemetry-js that referenced this issue Mar 21, 2024
Fixes open-telemetry#4282

- Add `HostDetector` to the list of default resource detectors
- Add test to make sure host and process values are being set by default
- Update from deprecated `sdk.detectResources()` to `sdk.start()` on tests
- Update from deprecated `SemanticResourceAttributes.SERVICE_NAME` to `SEMRESATTRS_SERVICE_NAME` on SDK file
maryliag added a commit to maryliag/opentelemetry-js that referenced this issue Mar 21, 2024
Fixes open-telemetry#4282

- Add `HostDetector` to the list of default resource detectors
- Add test to make sure host and process values are being set by default
- Update from deprecated `sdk.detectResources()` to `sdk.start()` on tests
- Update from deprecated `SemanticResourceAttributes.SERVICE_NAME` to `SEMRESATTRS_SERVICE_NAME` on SDK file
pichlermarc added a commit that referenced this issue Mar 25, 2024
* feat(node-sdk): add `HostDetector` as default resource detector

Fixes #4282

- Add `HostDetector` to the list of default resource detectors
- Add test to make sure host and process values are being set by default
- Update from deprecated `sdk.detectResources()` to `sdk.start()` on tests
- Update from deprecated `SemanticResourceAttributes.SERVICE_NAME` to `SEMRESATTRS_SERVICE_NAME` on SDK file

* Update experimental/CHANGELOG.md

* fix lint

remove extra lint causing lint error

---------

Co-authored-by: Marc Pichler <marc.pichler@dynatrace.com>
Zirak pushed a commit to Zirak/opentelemetry-js that referenced this issue Sep 14, 2024
…-telemetry#4566)

* feat(node-sdk): add `HostDetector` as default resource detector

Fixes open-telemetry#4282

- Add `HostDetector` to the list of default resource detectors
- Add test to make sure host and process values are being set by default
- Update from deprecated `sdk.detectResources()` to `sdk.start()` on tests
- Update from deprecated `SemanticResourceAttributes.SERVICE_NAME` to `SEMRESATTRS_SERVICE_NAME` on SDK file

* Update experimental/CHANGELOG.md

* fix lint

remove extra lint causing lint error

---------

Co-authored-by: Marc Pichler <marc.pichler@dynatrace.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants