Skip to content

Commit 5f70633

Browse files
authored
fix(eap-spans): spans-samples endpoint should use transaction.span_id (#89502)
When eap is being used with the `spans-samples` endpoint, we should query for the `transaction.span_id` field instead of `transaction.id`. This fixes an issue where the the link from insights span samples to the trace view is broken when using eap, because the transaction.id is null
1 parent e0df1b9 commit 5f70633

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sentry/api/endpoints/organization_events_meta.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def get_eap_span_samples(request: Request, snuba_params: SnubaParams, orderby: l
295295

296296
selected_columns = request.GET.getlist("additionalFields", []) + [
297297
"project",
298-
"transaction.id",
298+
"transaction.span_id",
299299
column,
300300
"timestamp",
301301
"span_id",

0 commit comments

Comments
 (0)