Skip to content

Commit

Permalink
feat(perf): Add backend referrers for span summary and span metrics (#…
Browse files Browse the repository at this point in the history
…70466)

Adds backend referrers to be used on the new span summary and span
metrics pages

Relevant PR: #69159
  • Loading branch information
0Calories committed May 8, 2024
1 parent d3d6bdf commit eb4de59
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sentry/api/endpoints/organization_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@
Referrer.API_PERFORMANCE_MOBILE_UI_SCREEN_TABLE.value,
Referrer.API_PERFORMANCE_MOBILE_UI_SPAN_TABLE.value,
Referrer.API_PERFORMANCE_MOBILE_UI_METRICS_RIBBON.value,
Referrer.API_PERFORMANCE_SPAN_SUMMARY_HEADER_DATA.value,
Referrer.API_PERFORMANCE_SPAN_SUMMARY_TABLE.value,
}

API_TOKEN_REFERRER = Referrer.API_AUTH_TOKEN_EVENTS.value
Expand Down
3 changes: 3 additions & 0 deletions src/sentry/api/endpoints/organization_events_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@
Referrer.API_PERFORMANCE_HTTP_DOMAIN_SUMMARY_THROUGHPUT_CHART.value,
Referrer.API_PERFORMANCE_HTTP_SAMPLES_PANEL_DURATION_CHART.value,
Referrer.API_PERFORMANCE_HTTP_SAMPLES_PANEL_RESPONSE_CODE_CHART.value,
Referrer.API_PERFORMANCE_SPAN_SUMMARY_DURATION_CHART.value,
Referrer.API_PERFORMANCE_SPAN_SUMMARY_THROUGHPUT_CHART.value,
Referrer.API_PERFORMANCE_SPAN_SUMMARY_TRANSACTION_THROUGHPUT_CHART.value,
}


Expand Down
9 changes: 9 additions & 0 deletions src/sentry/snuba/referrer.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,15 @@ class Referrer(Enum):
"api.performance.http.samples-panel-response-code-samples"
)

# Performance Span Summary Page and Span Metrics
API_PERFORMANCE_SPAN_SUMMARY_HEADER_DATA = "api.performance.span-summary-header-data"
API_PERFORMANCE_SPAN_SUMMARY_TABLE = "api.performance.span-summary-table"
API_PERFORMANCE_SPAN_SUMMARY_DURATION_CHART = "api.performance.span-summary-duration-chart"
API_PERFORMANCE_SPAN_SUMMARY_THROUGHPUT_CHART = "api.performance.span-summary-throughput-chart"
API_PERFORMANCE_SPAN_SUMMARY_TRANSACTION_THROUGHPUT_CHART = (
"api.performance.span-summary-transaction-throughput-chart"
)

API_SPAN_SAMPLE_GET_BOUNDS = "api.spans.sample-get-bounds"
API_SPAN_SAMPLE_GET_SPAN_IDS = "api.spans.sample-get-span-ids"
API_SPAN_SAMPLE_GET_SPAN_DATA = "api.spans.sample-get-span-data"
Expand Down

0 comments on commit eb4de59

Please sign in to comment.