-
Notifications
You must be signed in to change notification settings - Fork 534
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: add new instrumentations into auto-instrumentations-node
#981
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #981 +/- ##
==========================================
+ Coverage 96.08% 96.32% +0.24%
==========================================
Files 14 20 +6
Lines 893 1060 +167
Branches 191 216 +25
==========================================
+ Hits 858 1021 +163
- Misses 35 39 +4
|
Isn't it needed to update also utils.ts? |
It is! I don't even have any excuses. Added a test for it for the future. |
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.
Liked the new test.
LGTM
Not related to this PR. It seems the dependencies are not updated automatically here if an instrumentation is published. Don't know if we can automate this or somehow tell lerna to do this. |
Don't you think open ranges for those dependencies takes care of that? |
I think this could work. But I guess the range needs to be |
Not sure I understand what you mean exactly. What do you think would be the ideal version specifiers for the instrumentation deps? |
I think the optimum would be that this module is automatically updated whenever another module is released. And the version should be pinned. I assume here that updates of dependencies like If ranges like |
I don't have a strong preference, but |
Going through release-please logs and release PR, the dependencies does seem to be updated, @Flarna. That was exactly what you had in mind, right? |
Yes, that seems ok. But maybe remove the |
I've now learned that pinning is probably even better idea than I thought because the version This is also something to keep in mind in the future whenever we update any of the deps in the meta-pacakges. |
"@opentelemetry/instrumentation-router": "^0.27.1", | ||
"@opentelemetry/instrumentation-tedious": "^0.1.0", | ||
"@opentelemetry/instrumentation-winston": "^0.27.3" | ||
"@opentelemetry/instrumentation": "0.27.0", |
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.
"@opentelemetry/instrumentation": "0.27.0", | |
"@opentelemetry/instrumentation": "0.28.0", |
"@opentelemetry/instrumentation-fs": "0.2.0", | ||
"@opentelemetry/instrumentation-generic-pool": "0.27.2", | ||
"@opentelemetry/instrumentation-graphql": "0.27.4", | ||
"@opentelemetry/instrumentation-grpc": "0.27.0", |
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.
"@opentelemetry/instrumentation-grpc": "0.27.0", | |
"@opentelemetry/instrumentation-grpc": "0.28.0", |
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.
That's what I meant by ☝️. Updating this leaves @opentelemetry/instrumentation
out of sync with other packages and tests fail because of a type mismatch.
"@opentelemetry/instrumentation-graphql": "0.27.4", | ||
"@opentelemetry/instrumentation-grpc": "0.27.0", | ||
"@opentelemetry/instrumentation-hapi": "0.27.1", | ||
"@opentelemetry/instrumentation-http": "0.27.0", |
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.
"@opentelemetry/instrumentation-http": "0.27.0", | |
"@opentelemetry/instrumentation-http": "0.28.0", |
There should be nothing left using 0.27.0. All the instrumentations here (expect http and grpc) should be linked by lerna and main should be on 0.28.0 meanwhile. |
I'll try it out. I guess I must've had something left behind for the whole dep tree to end up in a mess. |
I do agree that after your suggested edits install should bring in 0.28 but I'm not seeing it, so unless I manage to get everything to upgrade in union, I will continue holding http and grpc packages back. |
Maybe some leftover package-lock.json files? maybe try Maybe #1012 helps also as I found npm is not dedup in all cases. |
The CI also has the same issue:
|
I could achieve that by updating all instrumentations here to use |
69905a3
to
76857a0
Compare
@rauno56 - This PR is still relevant, right? just needs to be updated (mostly version numbers I guess) |
Yep .. I'll rebase and let's get it merged. |
76857a0
to
0f9684b
Compare
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
auto-instrumentations-node
Which problem is this PR solving?
As @pizzaz93 pointed out, some of the new instrumentation packages were missing from the auto-instrumentation-node package.
Short description of the changes
Added all contrib packages to the metapackage.
Checklist
npm run test-all-versions
for the edited package(s) on the latest commit if applicable.