aboutsummaryrefslogtreecommitdiff
path: root/relayapi
diff options
context:
space:
mode:
Diffstat (limited to 'relayapi')
-rw-r--r--relayapi/routing/routing.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/relayapi/routing/routing.go b/relayapi/routing/routing.go
index f11b0a7c..92476d6c 100644
--- a/relayapi/routing/routing.go
+++ b/relayapi/routing/routing.go
@@ -108,6 +108,8 @@ func MakeRelayAPI(
// add the user to Sentry, if enabled
hub := sentry.GetHubFromContext(req.Context())
if hub != nil {
+ // clone the hub, so we don't send garbage events with e.g. mismatching rooms/event_ids
+ hub = hub.Clone()
hub.Scope().SetTag("origin", string(fedReq.Origin()))
hub.Scope().SetTag("uri", fedReq.RequestURI())
}