Skip to content

fix(sdk-metrics): allow instrument names to contain '/'#4155

Merged
pichlermarc merged 1 commit intoopen-telemetry:mainfrom
aabmass:allow-slash-4141
Sep 21, 2023
Merged

fix(sdk-metrics): allow instrument names to contain '/'#4155
pichlermarc merged 1 commit intoopen-telemetry:mainfrom
aabmass:allow-slash-4141

Conversation

@aabmass
Copy link
Member

@aabmass aabmass commented Sep 20, 2023

Which problem is this PR solving?

Fixes #4141

Short description of the changes

Allows the / character in metric instrument name validation.

Type of change

Please delete options that are not relevant.

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

How Has This Been Tested?

  • Updated existing test case

Checklist:

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

@aabmass aabmass force-pushed the allow-slash-4141 branch 2 times, most recently from cdce171 to 4f570e9 Compare September 20, 2023 14:23
@aabmass aabmass marked this pull request as ready for review September 20, 2023 14:24
@aabmass aabmass requested a review from a team September 20, 2023 14:24
@codecov
Copy link

codecov bot commented Sep 20, 2023

Codecov Report

Merging #4155 (9976b38) into main (1a8652a) will increase coverage by 0.01%.
The diff coverage is 100.00%.

❗ Current head 9976b38 differs from pull request most recent head 71bc38d. Consider uploading reports for the commit 71bc38d to get more accurate results

@@            Coverage Diff             @@
##             main    #4155      +/-   ##
==========================================
+ Coverage   92.29%   92.30%   +0.01%     
==========================================
  Files         328      328              
  Lines        9385     9385              
  Branches     1993     1993              
==========================================
+ Hits         8662     8663       +1     
+ Misses        723      722       -1     
Files Changed Coverage
packages/sdk-metrics/src/InstrumentDescriptor.ts 100.00%

Copy link
Member

@pichlermarc pichlermarc left a comment

Choose a reason for hiding this comment

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

Looks good, thanks! 🙂
Edit: failing windows test is unrelated - looks like some server is unavailable/misbehaving - I'll restart the test.

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.

Allow use of "/" in Metrics Instrument Names

3 participants