-
Notifications
You must be signed in to change notification settings - Fork 795
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: warn user when a instrumented package was already required #636 #654
feat: warn user when a instrumented package was already required #636 #654
Conversation
Codecov Report
@@ Coverage Diff @@
## master #654 +/- ##
===========================================
- Coverage 91.11% 56.57% -34.54%
===========================================
Files 232 77 -155
Lines 10444 1976 -8468
Branches 958 236 -722
===========================================
- Hits 9516 1118 -8398
+ Misses 928 858 -70
|
packages/opentelemetry-node/src/instrumentation/PluginLoader.ts
Outdated
Show resolved
Hide resolved
packages/opentelemetry-node/src/instrumentation/PluginLoader.ts
Outdated
Show resolved
Hide resolved
As in #636 (comment) Please confirm: the actual packages (http, express, redis, mysql, etc.) could indeed be required before tracer initialization, but they should be instantiated after the tracer initialization. |
5781dd0
to
b8f5659
Compare
I've adressed aboves comments |
packages/opentelemetry-node/src/instrumentation/PluginLoader.ts
Outdated
Show resolved
Hide resolved
ed609f1
to
d0b999b
Compare
78a933b
to
5bb0014
Compare
@open-telemetry/javascript-approvers Could we have more review on this one please ? |
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, have one question and I see possible room for performance improvements.
packages/opentelemetry-node/src/instrumentation/PluginLoader.ts
Outdated
Show resolved
Hide resolved
packages/opentelemetry-node/src/instrumentation/PluginLoader.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.
fecdb2a
to
d431736
Compare
480b56e
to
34bfa5c
Compare
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, please fix the build for Node 10 and 12.
packages/opentelemetry-node/src/instrumentation/PluginLoader.ts
Outdated
Show resolved
Hide resolved
9a0eb99
to
29e07e6
Compare
i think this one is ready to be merged |
No description provided.