-
Notifications
You must be signed in to change notification settings - Fork 415
feat: Added support for knex #3172
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
base: main
Are you sure you want to change the base?
Conversation
|
||
registerInstrumentations({ | ||
instrumentations: [ | ||
new KnexInstrumentation({ maxQueryLength: -1, requireParentSpan: true }) |
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.
this instrumentation will conflict with our agent depending on the underlying db engine. I found during our initial POC that if you rely on db engines that we instrument you get duplicate segments. This needs to be solved before this is merged
removeModules(['knex', 'better-sqlite3']) | ||
}) | ||
|
||
test('records queries', (t, end) => { |
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.
if we're writing versioned tests they should align with other db libraries we instrument to ensure parity. you can check mysql, pg, etc for reference
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 believe this has been addressed.
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.
a few comments
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3172 +/- ##
==========================================
- Coverage 97.63% 97.59% -0.05%
==========================================
Files 339 340 +1
Lines 51023 51049 +26
==========================================
+ Hits 49818 49822 +4
- Misses 1205 1227 +22
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This PR adds support for
knex
as the initial implementation of automatic OTEL bridge configuration.