Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cleptric committed Sep 4, 2024
1 parent 300ca09 commit aaf641a
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions scope.go
Original file line number Diff line number Diff line change
Expand Up @@ -383,15 +383,6 @@ func (scope *Scope) ApplyToEvent(event *Event, hint *EventHint, client *Client)
}

for key, value := range scope.contexts {
// if key == "trace" && event.Type == transactionType {
// // Do not override trace context of
// // transactions, otherwise it breaks the
// // transaction event representation.
// // For error events, the trace context is used
// // to link errors and traces/spans in Sentry.
// continue
// }

// Ensure we are not overwriting event fields
if _, ok := event.Contexts[key]; !ok {
event.Contexts[key] = cloneContext(value)
Expand Down

0 comments on commit aaf641a

Please sign in to comment.