From c26d76465be33b07e39bbf7178ec08c7a94e7ff5 Mon Sep 17 00:00:00 2001 From: Abhijeet Prasad Date: Tue, 29 Apr 2025 14:20:51 -0400 Subject: [PATCH] fix(node): Use correct Sentry winston transport --- packages/node/src/integrations/winston.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/node/src/integrations/winston.ts b/packages/node/src/integrations/winston.ts index 74af701d7144..a485a6c56431 100644 --- a/packages/node/src/integrations/winston.ts +++ b/packages/node/src/integrations/winston.ts @@ -18,7 +18,7 @@ interface WinstonTransportOptions { * * @example * ```ts - * const transport = Sentry.createSentryWinstonTransport(Transport, { + * const SentryWinstonTransport = Sentry.createSentryWinstonTransport(Transport, { * // Only capture error and warn logs * levels: ['error', 'warn'], * }); @@ -43,10 +43,10 @@ interface WinstonTransportOptions { * const winston = require('winston'); * const Transport = require('winston-transport'); * - * const transport = Sentry.createSentryWinstonTransport(Transport); + * const SentryWinstonTransport = Sentry.createSentryWinstonTransport(Transport); * * const logger = winston.createLogger({ - * transports: [transport], + * transports: [new SentryWinstonTransport()], * }); * ``` */