File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/node/src/integrations Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ interface WinstonTransportOptions {
1818 *
1919 * @example
2020 * ```ts
21- * const transport = Sentry.createSentryWinstonTransport(Transport, {
21+ * const SentryWinstonTransport = Sentry.createSentryWinstonTransport(Transport, {
2222 * // Only capture error and warn logs
2323 * levels: ['error', 'warn'],
2424 * });
@@ -43,10 +43,10 @@ interface WinstonTransportOptions {
4343 * const winston = require('winston');
4444 * const Transport = require('winston-transport');
4545 *
46- * const transport = Sentry.createSentryWinstonTransport(Transport);
46+ * const SentryWinstonTransport = Sentry.createSentryWinstonTransport(Transport);
4747 *
4848 * const logger = winston.createLogger({
49- * transports: [transport ],
49+ * transports: [new SentryWinstonTransport() ],
5050 * });
5151 * ```
5252 */
You can’t perform that action at this time.
0 commit comments