Skip to content

Commit

Permalink
feat(sentry): Adding user to sentry (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanWoodard authored Nov 13, 2024
1 parent b8211a1 commit 58647fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions devservices/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import argparse
import atexit
import getpass
import logging
import os
from importlib import metadata
Expand Down Expand Up @@ -41,6 +42,8 @@
integrations=[ArgvIntegration()],
environment=sentry_environment,
)
username = getpass.getuser()
sentry_sdk.set_user({"username": username})


@atexit.register
Expand Down

0 comments on commit 58647fd

Please sign in to comment.