diff options
author | Till <2353100+S7evinK@users.noreply.github.com> | 2024-01-24 19:24:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-24 19:24:04 +0100 |
commit | d58daf96655d8533c40be674fd11b74c38f40999 (patch) | |
tree | bc255d58745ccccba2e714ab74404f8dc0181daf /federationapi | |
parent | 8e4dc6b4ae2e6b1ac8f62da2ba72deb282fb89b0 (diff) |
Update sentry reporting (#3305)
This hopefully reduces the garbage we currently produce.
(Using [GlitchTip](https://glitchtip.com/) on my personal instance, this
seems to look better)
Diffstat (limited to 'federationapi')
-rw-r--r-- | federationapi/routing/routing.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/federationapi/routing/routing.go b/federationapi/routing/routing.go index dc7a363e..6328d165 100644 --- a/federationapi/routing/routing.go +++ b/federationapi/routing/routing.go @@ -647,6 +647,8 @@ func MakeFedAPI( // 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()) } |