Move InstrumentationLibrary key generation logic out of TracerProvider/SpanConverter [#619]#663
Conversation
Factors key generation logic for InstrumentationLibrary instances out to a helper method in a utils class.
|
Thanks for opening your first pull request! If you haven't yet signed our Contributor License Agreement (CLA), then please do so that we can accept your contribution. A link should appear shortly in this PR if you have not already signed one. |
|
Could use some feedback on the new |
Phan doesn't like it, couldn't see an acceptable workaround.
|
@ditsuke welcome aboard! re: class naming, I think |
Codecov Report
@@ Coverage Diff @@
## main #663 +/- ##
============================================
+ Coverage 84.27% 84.28% +0.01%
- Complexity 1152 1153 +1
============================================
Files 127 128 +1
Lines 2786 2788 +2
============================================
+ Hits 2348 2350 +2
Misses 438 438
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Changes the key generator's namespace to Util\Instrumentation and classname to KeyGenerator, refactoring usages.
|
@ditsuke |
b84e3bb to
0f3665e
Compare
Also renames the other 2 tests for descriptiveness.
|
Thanks! |
PR for Issue #619.
Factors key generation logic for InstrumentationLibrary instances out to a helper method in a utils class, replacing generation in
TracerProviderandSpanConverterwith calls to the new method.