From 9fe5e5b965b5942ed289da00cd3ac81f4b946511 Mon Sep 17 00:00:00 2001 From: Tony Xiao Date: Wed, 20 Sep 2023 12:16:33 -0400 Subject: [PATCH] chore(profiling): Track accepted profile outcomes We're tracking less accepted outcomes than we're inserting to vroom. This validates that we're losing profiles when sending to vroom and it's not an issue with the accepted outcome count. --- src/sentry/profiles/task.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sentry/profiles/task.py b/src/sentry/profiles/task.py index 032a0702c4c00c..6a05596013b0ef 100644 --- a/src/sentry/profiles/task.py +++ b/src/sentry/profiles/task.py @@ -117,7 +117,8 @@ def process_profile_task( if not _push_profile_to_vroom(profile, project): return - _track_outcome(profile=profile, project=project, outcome=Outcome.ACCEPTED) + with metrics.timer("process_profile.track_outcome.accepted"): + _track_outcome(profile=profile, project=project, outcome=Outcome.ACCEPTED) JS_PLATFORMS = ["javascript", "node"]