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 (open-telemetry#2079)

Fixes: open-telemetry#2015
  • Loading branch information
hectorhdzg authored and maryliag committed Apr 9, 2024
1 parent 3569da3 commit f3fe553
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 f3fe553

Please sign in to comment.