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

feat(node-sdk): added resourceDetectors option to NodeSDK #3210 #3212

Conversation

osherv
Copy link
Member

@osherv osherv commented Aug 30, 2022

Fixes #3210

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A

Checklist:

  • Followed the style guidelines of this project
  • Unit tests have been added
  • Documentation has been updated

@osherv osherv requested a review from a team August 30, 2022 08:57
@codecov
Copy link

codecov bot commented Aug 30, 2022

Codecov Report

Merging #3212 (ede8c17) into main (a669f9c) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3212      +/-   ##
==========================================
- Coverage   93.22%   93.20%   -0.02%     
==========================================
  Files         196      196              
  Lines        6491     6492       +1     
  Branches     1370     1371       +1     
==========================================
  Hits         6051     6051              
- Misses        440      441       +1     
Impacted Files Coverage Δ
...imental/packages/opentelemetry-sdk-node/src/sdk.ts 91.13% <100.00%> (+0.11%) ⬆️
...-trace-base/src/platform/node/RandomIdGenerator.ts 87.50% <0.00%> (-6.25%) ⬇️

@Flarna
Copy link
Member

Flarna commented Aug 30, 2022

I guess the change in the protos files is not intended.

@osherv
Copy link
Member Author

osherv commented Aug 31, 2022

@Flarna Fixed, thanks!

experimental/packages/opentelemetry-sdk-node/README.md Outdated Show resolved Hide resolved
Comment on lines -170 to +174
config?: ResourceDetectionConfig
): Promise<void> {
public async detectResources(): Promise<void> {
const internalConfig: ResourceDetectionConfig = {
detectors: [envDetector, processDetector],
...config,
detectors: this._resourceDetectors,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a breaking change please add it to the changelog

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, thanks!

experimental/CHANGELOG.md Outdated Show resolved Hide resolved
@osherv osherv requested a review from dyladan September 1, 2022 13:24
@legendecas legendecas merged commit 4e123b5 into open-telemetry:main Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a resourceDetectors configuration to the SDK
5 participants