-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(growth): Sending analytics for admin requests (#28676)
* sending analytics * changes * rename * changes * fix tests
- Loading branch information
1 parent
8a32d5d
commit 18b5b2c
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from sentry import analytics | ||
|
||
|
||
class InAppRequestSentEvent(analytics.Event): | ||
attributes = ( | ||
analytics.Attribute("organization_id"), | ||
analytics.Attribute("user_id", required=False), | ||
analytics.Attribute("target_user_id"), | ||
analytics.Attribute("providers"), | ||
analytics.Attribute("subtype", required=False), | ||
) | ||
|
||
|
||
class InviteRequestSentEvent(InAppRequestSentEvent): | ||
type = "invite_request.sent" | ||
|
||
|
||
analytics.register(InviteRequestSentEvent) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters