Skip to content

Commit

Permalink
fix(@opentelemetry/instrumentation-winston): Removing error details w…
Browse files Browse the repository at this point in the history
…hen @opentelemetry/winston-transport is not available (#2301)

* Removing error details in diag warning

* Lint fix

---------

Co-authored-by: Marc Pichler <[email protected]>
  • Loading branch information
hectorhdzg and pichlermarc authored Jun 27, 2024
1 parent 688a92d commit fbf25c5
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,7 @@ export class WinstonInstrumentation extends InstrumentationBase {
args[0].transports = newTransports;
} catch (err) {
instrumentation._diag.warn(
'OpenTelemetry Winston transport is not available, log records will not be automatically sent.',
err
'@opentelemetry/winston-transport is not available, log records will not be automatically sent.'
);
}
}
Expand Down

0 comments on commit fbf25c5

Please sign in to comment.