Browse Source

chore(discover): Tag the query referrer (#24958)

- This should help us differentiate performance on the discover
  endpoints better
William Mak 3 years ago
parent
commit
178d3dbd2b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/sentry/utils/snuba.py

+ 1 - 0
src/sentry/utils/snuba.py

@@ -665,6 +665,7 @@ def bulk_raw_query(
     headers = {}
     if referrer:
         headers["referer"] = referrer
+        sentry_sdk.set_tag("query.referrer", referrer)
 
     # Store the original position of the query so that we can maintain the order
     query_param_list: List[Tuple[int, SnubaQuery]] = list(