Skip to content

Commit 2b7705b

Browse files
authored
Update knex Node integration (#12223)
Sentry.knexIntegration is not a constructor (only a void function can be called with the 'new' keyword).
1 parent 9de8316 commit 2b7705b

File tree

1 file changed

+1
-1
lines changed
  • docs/platforms/javascript/common/configuration/integrations

1 file changed

+1
-1
lines changed

docs/platforms/javascript/common/configuration/integrations/knex.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The `knexIntegration` adds instrumentation for the `knex` library to capture spa
3434

3535
```javascript
3636
Sentry.init({
37-
integrations: [new Sentry.knexIntegration()],
37+
integrations: [Sentry.knexIntegration()],
3838
});
3939
```
4040

0 commit comments

Comments
 (0)