-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
ref(analytics): Transform analytics events for TET-825 #95205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
constantinius
wants to merge
17
commits into
master
Choose a base branch
from
constantinius/ref/analytics/tet-825
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+63
−76
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
8143000
ref(analytics): Transform analytics events for TET-825
constantinius 724b035
fix(theme): Neutral chart color is white (#95201)
ArthurKnaus 7712413
ref(onboarding): Move onboarding types out of step component (#95200)
ArthurKnaus 8146e7c
fix(profiling-onboarding): iframe blocked by CSP (#95202)
ArthurKnaus 1867317
fix(demo-mode): includes demo header in stacked nav layout (#95203)
obostjancic 885e367
chore(dynamic-sampling): remove dynamic sampling minimum samplerate p…
shellmayr ca88475
fix(analytics): missing 'data' attribute exclusion
constantinius 6234116
Revert "chore(dynamic-sampling): remove dynamic sampling minimum samp…
constantinius 054dbdf
Revert "fix(demo-mode): includes demo header in stacked nav layout (#…
constantinius 41841aa
Revert "fix(profiling-onboarding): iframe blocked by CSP (#95202)"
constantinius 111464d
Revert "ref(onboarding): Move onboarding types out of step component …
constantinius c376be9
Revert "fix(theme): Neutral chart color is white (#95201)"
constantinius fd49aba
fix(analytics): fixing mypy issues
constantinius baf5a77
fix(analytics): exclude UUID from Event equality checks to allow for …
constantinius 5755ef6
Merge branch 'master' into constantinius/ref/analytics/tet-825
constantinius e2a04cf
Revert "fix(analytics): exclude UUID from Event equality checks to al…
constantinius 91d8172
test(analytics): fix tests for record calls
constantinius File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
13 changes: 5 additions & 8 deletions
13
src/sentry/analytics/events/eventuser_snuba_for_projects.py
This file contains hidden or 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 |
---|---|---|
@@ -1,15 +1,12 @@ | ||
from sentry import analytics | ||
|
||
|
||
@analytics.eventclass("eventuser_snuba.for_projects") | ||
class EventUserSnubaForProjects(analytics.Event): | ||
type = "eventuser_snuba.for_projects" | ||
|
||
attributes = ( | ||
analytics.Attribute("project_ids", type=list), | ||
analytics.Attribute("total_tries", type=int), | ||
analytics.Attribute("total_rows_returned", required=True, type=int), | ||
analytics.Attribute("total_time_ms", type=int), | ||
) | ||
project_ids: list[int] | ||
total_tries: int | ||
total_rows_returned: int | ||
total_time_ms: int | ||
|
||
|
||
analytics.register(EventUserSnubaForProjects) |
This file contains hidden or 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 |
---|---|---|
@@ -1,17 +1,14 @@ | ||
from sentry import analytics | ||
|
||
|
||
@analytics.eventclass("eventuser_snuba.query") | ||
class EventUserSnubaQuery(analytics.Event): | ||
type = "eventuser_snuba.query" | ||
|
||
attributes = ( | ||
analytics.Attribute("project_ids", type=list), | ||
analytics.Attribute("query"), | ||
analytics.Attribute("query_try", type=int), | ||
analytics.Attribute("count_rows_returned", required=True, type=int), | ||
analytics.Attribute("count_rows_filtered", required=True, type=int), | ||
analytics.Attribute("query_time_ms", type=int), | ||
) | ||
project_ids: list[int] | ||
query: str | ||
query_try: int | ||
count_rows_returned: int | ||
count_rows_filtered: int | ||
query_time_ms: int | ||
|
||
|
||
analytics.register(EventUserSnubaQuery) |
11 changes: 4 additions & 7 deletions
11
src/sentry/analytics/events/grouping_parameterization_experiment.py
This file contains hidden or 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 |
---|---|---|
@@ -1,14 +1,11 @@ | ||
from sentry import analytics | ||
|
||
|
||
@analytics.eventclass("grouping.experiments.parameterization") | ||
class GroupingParameterizationExperiment(analytics.Event): | ||
type = "grouping.experiments.parameterization" | ||
|
||
attributes = ( | ||
analytics.Attribute("experiment_name"), | ||
analytics.Attribute("project_id"), | ||
analytics.Attribute("event_id"), | ||
) | ||
experiment_name: str | ||
project_id: str | ||
event_id: str | ||
|
||
|
||
analytics.register(GroupingParameterizationExperiment) |
11 changes: 4 additions & 7 deletions
11
src/sentry/analytics/events/notifications_settings_updated.py
This file contains hidden or 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 |
---|---|---|
@@ -1,14 +1,11 @@ | ||
from sentry import analytics | ||
|
||
|
||
@analytics.eventclass("notifications.settings_updated") | ||
class NotificationSettingsUpdated(analytics.Event): | ||
type = "notifications.settings_updated" | ||
|
||
attributes = ( | ||
analytics.Attribute("target_type"), | ||
analytics.Attribute("actor_id", required=False), | ||
analytics.Attribute("id"), | ||
) | ||
target_type: str | ||
actor_id: str | None = None | ||
id: str | ||
Comment on lines
+7
to
+8
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above - are these ints or str? |
||
|
||
|
||
analytics.register(NotificationSettingsUpdated) |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't these be ints?