Browse Source

ref(tsdb): Break down TSDB Snuba referrer by model (#23125)

TSDB accounts for the largest share of queries from Sentry to Snuba.
Breaking this down by model is intended to give us better data
on query patterns and identify which types of queries result in
the most discrepancies between Snuba's errors and events storage.
Lyn Nagara 4 years ago
parent
commit
371f4f448c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/sentry/tsdb/snuba.py

+ 1 - 1
src/sentry/tsdb/snuba.py

@@ -284,7 +284,7 @@ class SnubaTSDB(BaseTSDB):
                 aggregations=aggregations,
                 rollup=rollup,
                 limit=limit,
-                referrer="tsdb",
+                referrer="tsdb-modelid:{}".format(model.value),
                 is_grouprelease=(model == TSDBModel.frequent_releases_by_group),
             )
         else: