Skip to content

Commit 6d79880

Browse files
committed
feat(baggage-logrecord-processor): update LogRecord -> SdkLogRecord
1 parent 0cc4236 commit 6d79880

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/baggage-log-record-processor/src/baggage-log-record-processor.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import { BaggageKeyPredicate } from './types';
1818
import { Context, propagation } from '@opentelemetry/api';
19-
import { LogRecord, LogRecordProcessor } from '@opentelemetry/sdk-logs';
19+
import { SdkLogRecord, LogRecordProcessor } from '@opentelemetry/sdk-logs';
2020

2121
/**
2222
* BaggageLogRecordProcessor is a {@link LogRecordProcessor} that reads entries stored in {@link Baggage}
@@ -50,11 +50,11 @@ export class BaggageLogRecordProcessor implements LogRecordProcessor {
5050
}
5151

5252
/**
53-
* Called when a {@link LogRecord} is emit
53+
* Called when a {@link SdkLogRecord} is emit
5454
* @param logRecord the ReadWriteLogRecord that just emitted.
5555
* @param context the current Context, or an empty Context if the Logger was obtained with include_trace_context=false
5656
*/
57-
onEmit(logRecord: LogRecord, context?: Context): void {
57+
onEmit(logRecord: SdkLogRecord, context?: Context): void {
5858
if (context) {
5959
(propagation.getBaggage(context)?.getAllEntries() ?? [])
6060
.filter(entry => this._keyPredicate(entry[0]))

0 commit comments

Comments
 (0)