Skip to content

Commit fbf25c5

Browse files
fix(@opentelemetry/instrumentation-winston): Removing error details when @opentelemetry/winston-transport is not available (#2301)
* Removing error details in diag warning * Lint fix --------- Co-authored-by: Marc Pichler <marc.pichler@dynatrace.com>
1 parent 688a92d commit fbf25c5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugins/node/opentelemetry-instrumentation-winston/src/instrumentation.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,7 @@ export class WinstonInstrumentation extends InstrumentationBase {
221221
args[0].transports = newTransports;
222222
} catch (err) {
223223
instrumentation._diag.warn(
224-
'OpenTelemetry Winston transport is not available, log records will not be automatically sent.',
225-
err
224+
'@opentelemetry/winston-transport is not available, log records will not be automatically sent.'
226225
);
227226
}
228227
}

0 commit comments

Comments
 (0)