-
Notifications
You must be signed in to change notification settings - Fork 804
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(opentelemetry-instrumentation): getConfig and setConfig #2224
feat(opentelemetry-instrumentation): getConfig and setConfig #2224
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2224 +/- ##
=======================================
Coverage 92.71% 92.72%
=======================================
Files 142 142
Lines 5120 5124 +4
Branches 1049 1050 +1
=======================================
+ Hits 4747 4751 +4
Misses 373 373
|
packages/opentelemetry-instrumentation/test/common/Instrumentation.test.ts
Outdated
Show resolved
Hide resolved
packages/opentelemetry-instrumentation/test/common/Instrumentation.test.ts
Outdated
Show resolved
Hide resolved
packages/opentelemetry-instrumentation/test/common/Instrumentation.test.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thx for changes
Which problem is this PR solving?
Plugins should be able to modify configuration at run time; many plugins implement this. There is no reason this shouldn't be in the base class, so all plugins have this functionality.
Short description of the changes
Added
getConfig
andsetConfig
toInstrumentationAbstract
andInstrumentation
Fixes #2174