-
Notifications
You must be signed in to change notification settings - Fork 457
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(instrumentation-hapi): support v21 #1985
feat(instrumentation-hapi): support v21 #1985
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1985 +/- ##
==========================================
- Coverage 90.97% 90.47% -0.51%
==========================================
Files 146 147 +1
Lines 7492 7590 +98
Branches 1502 1575 +73
==========================================
+ Hits 6816 6867 +51
- Misses 676 723 +47
|
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.
I need to try this out still, but looks good at first glance - thanks for taking care of this 🙂
Two comments for now:
@pichlermarc did you have a chance to look at this yet? |
@trentm given your experience with hapi, maybe you could review this PR? 🙏 |
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, just the .tav.yml change that I think should be added, and a Q about dropping the @types/hapi__hapi
dep. Tests do pass, so I don't think my Q about the types needs to hold this up.
@@ -275,7 +271,6 @@ export class HapiInstrumentation extends InstrumentationBase { | |||
const oldHandler = plugin.register; | |||
const self = this; | |||
const newRegisterHandler = function (server: Hapi.Server, options: T) { | |||
server.route; |
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.
Do you understand why this statement was added in #1595 originally? I would guess it was left over debugging code, but I don't know.
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 thought. Since the tests are passing I assumed it was just a left-over. If not I would expect a comment here explaining why this is needed.
@nlochschmidt please resolve the conflicts if you have some time. 🙂 |
@pichlermarc good to know that tests only run when there are no conflicts 💡 I had to bring back the |
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
I defer to @pichlermarc or others if skipLibCheck:true on auto-instrumentations-node might be a preferable change.
My 2c: I think adding Disabling lib check on auto-instrumentation-node seems like a bigger discussion, and I wonder if it's worth waiting for a decision before merging this PR? |
Just reproducing it myself, the build failure:
Note: we already have skipLibCheck on a subset of packages:
My 2c ;), I am fine with either:
@pichlermarc Did you have a particular opinion? |
I would love to see this PR getting merged. @trentm @pichlermarc can I do anything to make that happen? |
@nlochschmidt - Thanks for carrying this forward! I second that, if there's anything I could do to help here as well, I would be glad to. |
Sorry for taking so long to come back to this PR. 😨 In my initial review I was just very confused that My guess is this choice was maybe made as it can be used without Anyway, I'm fine to
I'd prefer a |
Thanks, Marc. @nlochschmidt Are you able to drop the change to "plugins/node/opentelemetry-instrumentation-hapi/tsconfig.json" and deal with merge conflicts now? (Let me know if you want a hand with that.) |
99bae64
to
45ddd98
Compare
@trentm @pichlermarc PR is up-to-date again.
|
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.
Thank you for working on this 👍
Co-authored-by: Marc Pichler <marc.pichler@dynatrace.com>
Which problem is this PR solving?
Short description of the changes
Continuation of stale #1491
@types/hapi__hapi