Skip to content

Commit

Permalink
Fix for reading traceId from header.
Browse files Browse the repository at this point in the history
  • Loading branch information
flexable777 committed Jan 18, 2024
1 parent 886fc4c commit 8cb9c28
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class EventController(
var traceId = "unknown"
try {
//[00-b37d69e0b7574e7c8ea89df62c9bab4c-ce0c8200a58042dd-00]
traceId = request.getHeader("traceparent").first().toString().split("-")[1]
traceId = request.getHeader("traceparent").split("-")[1]
} catch (e: Exception) {
logger.warn("could not extract traceId")
}
Expand Down

0 comments on commit 8cb9c28

Please sign in to comment.