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

refactor(sdk-node): Use tree-shakeable string constants for semconv #4767

Merged
merged 2 commits into from
Jun 7, 2024

Conversation

JohannesHuster
Copy link
Contributor

@JohannesHuster JohannesHuster commented Jun 5, 2024

Which problem is this PR solving?

Updates #4567

Short description of the changes

Replace deprecated imports from @opentelemetry/semantic-conventions with new (tree-shakeable) string constants for package @opentelemetry/sdk-node. What I did:

  • Search for “@opentelemetry/semantic-conventions” in package path.
    • Add new imports and check that new and old strings match exactly.
    • Use new imports and remove old ones.
  • I also copy/pasted a change from chore(resources): update deprecated semconv to use exported strings #4755, because the functions (and the files as well) had the same behavior before.
    • One of these files seems to have been copy/pasted at some time and some functions in this file (like assertCloudResource aren't used at all in this package. I didn't investigate any further or try to make additional changes, since I don't know the history behind it, but I'm happy to clean up some more in another PR, if that is wanted.

Type of change

  • Bug fix (non-breaking change which fixes an issue) (refactor)

How Has This Been Tested?

  • npm test

Checklist:

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

@JohannesHuster JohannesHuster marked this pull request as ready for review June 5, 2024 13:15
@JohannesHuster JohannesHuster requested a review from a team June 5, 2024 13:15
@pichlermarc pichlermarc added this pull request to the merge queue Jun 7, 2024
Merged via the queue into open-telemetry:main with commit bd05393 Jun 7, 2024
19 checks passed
Zirak pushed a commit to Zirak/opentelemetry-js that referenced this pull request Sep 14, 2024
…pen-telemetry#4767)

* refactor(sdk-node): Use tree-shakeable string constants for semconv

* Update changelog
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.

3 participants