Skip to content

Commit

Permalink
Merge pull request #550 from GooeyAI/sentry-tag-paid-users
Browse files Browse the repository at this point in the history
add sentry tag for user_is_paying to search based on that
  • Loading branch information
nikochiko authored Dec 4, 2024
2 parents 25ffdb3 + dfa5438 commit 659d539
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions daras_ai_v2/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,15 +300,17 @@ def sentry_event_set_user(self, event, hint):
"phone_number",
"photo_url",
"balance",
"is_paying",
"is_anonymous",
"is_disabled",
"disable_safety_checker",
"disable_rate_limits",
"created_at",
]
},
}
event.setdefault("tags", {}).update(
user_is_paying=user.is_paying,
user_is_anonymous=user.is_anonymous,
user_is_disabled=user.is_disabled,
)
return event

def refresh_state(self):
Expand Down

0 comments on commit 659d539

Please sign in to comment.