Skip to content

Commit eb49552

Browse files
authored
fix(node): Use class constructor in docstring for winston transport (#16167)
1 parent 7c50cd4 commit eb49552

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/node/src/integrations/winston.ts

+3-3
Original file line numberDiff line numberDiff 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
*/

0 commit comments

Comments
 (0)