From f3fe553674141aaf6901afe69bee3d9950cf5069 Mon Sep 17 00:00:00 2001 From: Hector Hernandez <39923391+hectorhdzg@users.noreply.github.com> Date: Thu, 4 Apr 2024 14:43:51 -0700 Subject: [PATCH] fix(winston-transport): Typescript issue with OpenTelemetryTransportV3 not assignable to TransportStream (#2079) Fixes: #2015 --- packages/winston-transport/src/OpenTelemetryTransportV3.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/winston-transport/src/OpenTelemetryTransportV3.ts b/packages/winston-transport/src/OpenTelemetryTransportV3.ts index 9ff40c4929..fe759676e9 100644 --- a/packages/winston-transport/src/OpenTelemetryTransportV3.ts +++ b/packages/winston-transport/src/OpenTelemetryTransportV3.ts @@ -15,14 +15,14 @@ */ import { Logger, logs } from '@opentelemetry/api-logs'; -import * as Transport from 'winston-transport'; +import TransportStream = require('winston-transport'); import { VERSION } from './version'; import { emitLogRecord } from './utils'; -export class OpenTelemetryTransportV3 extends Transport { +export class OpenTelemetryTransportV3 extends TransportStream { private _logger: Logger; - constructor(options?: Transport.TransportStreamOptions) { + constructor(options?: TransportStream.TransportStreamOptions) { super(options); this._logger = logs.getLogger('@opentelemetry/winston-transport', VERSION); }