-
Notifications
You must be signed in to change notification settings - Fork 539
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix(instrumentation-fastify): add missing module export #2633
base: main
Are you sure you want to change the base?
Conversation
|
40997fc
to
0e640e9
Compare
This package does not have an assigned component owner and is considered unmaintained. As such this package is in feature-freeze and this PR will be closed with 14 days unless a new owner or a sponsor (a member of @open-telemetry/javascript-approvers) for the feature is found. It is the responsibility of the author to find a sponsor for this feature. |
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.
thanks 👍
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2633 +/- ##
=======================================
Coverage 90.79% 90.79%
=======================================
Files 169 169
Lines 8059 8061 +2
Branches 1645 1646 +1
=======================================
+ Hits 7317 7319 +2
Misses 742 742
|
oh this still needs some lint fixes ( |
Looks like tests are failing for older fastify versions (4.5.1, for instance). |
0e640e9
to
96a94b4
Compare
It turns out the |
fastify v4.8+ exports an object named `errorCodes` as both a property of the default export and as a named export. The export is documented at https://github.com/fastify/fastify/blob/4.x/docs/Reference/Errors.md?plain=1#L236. This closes open-telemetry#2027.
96a94b4
to
2727df2
Compare
FYI I rebased off of latest main and updated commit body to reflect v4.8 instead of general v4.x. |
Which problem is this PR solving?
This PR adds an additional export that is part of the fastify public API to the
InstrumentationNodeModuleDefinition
patch function. Without this patch,Short description of the changes
fastify v4.8+ exports an object named
errorCodes
as both a property of the default export and as a named export.The export is documented at https://github.com/fastify/fastify/blob/4.x/docs/Reference/Errors.md?plain=1#L236.
This closes #2027.