Skip to content

Commit

Permalink
refactor(otel): addSpanEventWithIncomingRequestData() always log
Browse files Browse the repository at this point in the history
  • Loading branch information
waitingsong committed Oct 29, 2024
1 parent c2687d5 commit 2ec085f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/otel/src/lib/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,9 @@ export function addSpanEventWithIncomingRequestData(options: AddSpanEventWithInc
})
}

if (Object.keys(attrs).length) {
span.addEvent(AttrNames.Incoming_Request_data, attrs)
}
// if (Object.keys(attrs).length) {
span.addEvent(AttrNames.Incoming_Request_data, attrs)
// }
}

export function propagateOutgoingHeader(
Expand Down

0 comments on commit 2ec085f

Please sign in to comment.