From f2a866618d47ab27ef9e1663a7a64074bfab3fbb Mon Sep 17 00:00:00 2001 From: Matthieu Bacconnier Date: Sun, 29 Dec 2024 16:59:56 +0100 Subject: [PATCH] Update knex Node integration Sentry.knexIntegration is not a constructor (only a void function can be called with the 'new' keyword). --- .../javascript/common/configuration/integrations/knex.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/platforms/javascript/common/configuration/integrations/knex.mdx b/docs/platforms/javascript/common/configuration/integrations/knex.mdx index e1fb4f9fb8af9..092c0de49488e 100644 --- a/docs/platforms/javascript/common/configuration/integrations/knex.mdx +++ b/docs/platforms/javascript/common/configuration/integrations/knex.mdx @@ -34,7 +34,7 @@ The `knexIntegration` adds instrumentation for the `knex` library to capture spa ```javascript Sentry.init({ - integrations: [new Sentry.knexIntegration()], + integrations: [Sentry.knexIntegration()], }); ```