Skip to content

Commit c6cc52a

Browse files
committed
handle non-string traceid and spanid
1 parent 1cf0d6c commit c6cc52a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

seq_logger.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ module.exports = function (safeGlobalBlob, safeGlobalFetch, safeGlobalAbortContr
117117
return {
118118
Timestamp: timestamp,
119119
Level: level,
120-
TraceId: event.traceId,
121-
SpanId: event.spanId,
120+
TraceId: event.traceId?.toString(),
121+
SpanId: event.spanId?.toString(),
122122
MessageTemplate: messageTemplate,
123123
Exception: exception,
124124
Properties: properties

0 commit comments

Comments
 (0)