This repository was archived by the owner on Nov 25, 2024. It is now read-only.
File tree 3 files changed +4
-2
lines changed
3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -647,6 +647,8 @@ func MakeFedAPI(
647
647
// add the user to Sentry, if enabled
648
648
hub := sentry .GetHubFromContext (req .Context ())
649
649
if hub != nil {
650
+ // clone the hub, so we don't send garbage events with e.g. mismatching rooms/event_ids
651
+ hub = hub .Clone ()
650
652
hub .Scope ().SetTag ("origin" , string (fedReq .Origin ()))
651
653
hub .Scope ().SetTag ("uri" , fedReq .RequestURI ())
652
654
}
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ func MakeAuthAPI(
76
76
// add the user to Sentry, if enabled
77
77
hub := sentry .GetHubFromContext (req .Context ())
78
78
if hub != nil {
79
- // clone the hub, so we don't sent garbage events with e.g. mismatching rooms/event_ids
79
+ // clone the hub, so we don't send garbage events with e.g. mismatching rooms/event_ids
80
80
hub = hub .Clone ()
81
81
hub .Scope ().SetUser (sentry.User {
82
82
Username : device .UserID ,
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ func MakeRelayAPI(
108
108
// add the user to Sentry, if enabled
109
109
hub := sentry .GetHubFromContext (req .Context ())
110
110
if hub != nil {
111
- // clone the hub, so we don't sent garbage events with e.g. mismatching rooms/event_ids
111
+ // clone the hub, so we don't send garbage events with e.g. mismatching rooms/event_ids
112
112
hub = hub .Clone ()
113
113
hub .Scope ().SetTag ("origin" , string (fedReq .Origin ()))
114
114
hub .Scope ().SetTag ("uri" , fedReq .RequestURI ())
You can’t perform that action at this time.
0 commit comments