Skip to content

Commit

Permalink
pkg/context: Update tracing context transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
monstermunchkin committed Nov 27, 2024
1 parent 2251924 commit d577c4b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/context/transfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ func Transfer(in context.Context) context.Context {

func TransferTracingContext(in, out context.Context) context.Context {
span := sentry.SpanFromContext(in)
if span != nil {
out = span.Context()
if span == nil {
return out
}
return out

return span.Context()
}

func TransferExternalDependencyContext(in, out context.Context) context.Context {
Expand Down

0 comments on commit d577c4b

Please sign in to comment.