Browse Source

chore(trace-explorer): Add referrer for trace explorer table (#67723)

Tony Xiao 11 months ago
parent
commit
c46c0c4199
2 changed files with 2 additions and 0 deletions
  1. 1 0
      src/sentry/api/endpoints/organization_events.py
  2. 1 0
      src/sentry/snuba/referrer.py

+ 1 - 0
src/sentry/api/endpoints/organization_events.py

@@ -89,6 +89,7 @@ ALLOWED_EVENTS_REFERRERS = {
     Referrer.API_STARFISH_MOBILE_STARTUP_SPAN_TABLE.value,
     Referrer.API_STARFISH_MOBILE_STARTUP_LOADED_LIBRARIES.value,
     Referrer.API_STARFISH_MOBILE_STARTUP_TOTALS.value,
+    Referrer.API_TRACE_EXPLORER_TABLE.value,
 }
 
 API_TOKEN_REFERRER = Referrer.API_AUTH_TOKEN_EVENTS.value

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

@@ -430,6 +430,7 @@ class Referrer(Enum):
     API_STARFISH_MOBILE_STARTUP_SPAN_TABLE = "api.starfish.mobile-spartup-span-table"
     API_STARFISH_MOBILE_STARTUP_LOADED_LIBRARIES = "api.starfish.mobile-startup-loaded-libraries"
     API_STARFISH_MOBILE_STARTUP_TOTALS = "api.starfish.mobile-startup-totals"
+    API_TRACE_EXPLORER_TABLE = "api.trace-explorer.table"
 
     API_SPAN_SAMPLE_GET_BOUNDS = "api.spans.sample-get-bounds"
     API_SPAN_SAMPLE_GET_SPAN_IDS = "api.spans.sample-get-span-ids"