Skip to content

Commit 61bf095

Browse files
DominikB2014claude
andcommitted
fix(slack): Cast user id to string in set_user call
sentry_sdk.set_user expects a string for the id field. Passing an int could prevent user.id from being indexed correctly in EAP spans. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 39c0754 commit 61bf095

File tree

1 file changed

+1
-1
lines changed
  • src/sentry/integrations/slack/webhooks

1 file changed

+1
-1
lines changed

src/sentry/integrations/slack/webhooks/event.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def on_link_shared(self, request: Request, slack_request: SlackDMRequest) -> boo
281281
if identity_user:
282282
sentry_sdk.set_user(
283283
{
284-
"id": identity_user.id,
284+
"id": str(identity_user.id),
285285
"email": identity_user.email,
286286
"username": identity_user.username,
287287
}

0 commit comments

Comments
 (0)