Skip to content

Conversation

@mottibec
Copy link
Contributor

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 and setConfig to InstrumentationAbstract and Instrumentation
Fixes #2174

@mottibec mottibec changed the title feat(opentelemetry-instrumentation): config feat(opentelemetry-instrumentation): getConfig and setConfig May 23, 2021
@codecov
Copy link

codecov bot commented May 23, 2021

Codecov Report

Merging #2224 (734a5ab) into main (a968646) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head 734a5ab differs from pull request most recent head ae72f29. Consider uploading reports for the commit ae72f29 to get more accurate results

@@           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           
Impacted Files Coverage Δ
...entelemetry-instrumentation/src/instrumentation.ts 69.23% <100.00%> (+5.59%) ⬆️

@dyladan dyladan added the enhancement New feature or request label May 24, 2021
@vmarchaud vmarchaud requested a review from obecny May 25, 2021 07:30
Copy link
Member

@obecny obecny left a 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

@obecny obecny merged commit eb9353a into open-telemetry:main May 25, 2021
@dyladan dyladan mentioned this pull request Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: implement getConfig/setConfig on base instrumentation class

6 participants