Skip to content

Commit

Permalink
fix(winston-transport): Typescript issue with OpenTelemetryTransportV…
Browse files Browse the repository at this point in the history
…3 not assignable to TransportStream (#2079)

Fixes: #2015
  • Loading branch information
hectorhdzg authored Apr 4, 2024
1 parent 1c9aec1 commit b006f7f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/winston-transport/src/OpenTelemetryTransportV3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit b006f7f

Please sign in to comment.