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

docs(opentelemetry-resources): fix wrong sample code in readme #2289

Merged

Conversation

alisabzevari
Copy link
Contributor

Fixes #2284

Which problem is this PR solving?

  • Fixes the sample code in the opentelemetry-resources readme and uses ResourceAttributes from semantic-conventions module to access the standard resource names.

Short description of the changes

  • Fixed the sample code in the readme
  • Mentioned the semantic-conventions module in the sentence describing standard attributes.

use semantic-conventions package to get ResourceAttributes in sample code
@codecov
Copy link

codecov bot commented Jun 17, 2021

Codecov Report

Merging #2289 (68d1e59) into main (39e6cb3) will increase coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #2289      +/-   ##
==========================================
+ Coverage   92.70%   92.72%   +0.01%     
==========================================
  Files         145      145              
  Lines        5184     5184              
  Branches     1060     1060              
==========================================
+ Hits         4806     4807       +1     
+ Misses        378      377       -1     
Impacted Files Coverage Δ
...emetry-core/src/platform/node/RandomIdGenerator.ts 93.75% <0.00%> (+6.25%) ⬆️

@obecny obecny added the document Documentation-related label Jun 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
document Documentation-related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Outdated docs in opentelemetry-resources
5 participants