diff --git a/src/sentry/api/endpoints/organization_events.py b/src/sentry/api/endpoints/organization_events.py index 9c992a898d8c75..679430efc1bec2 100644 --- a/src/sentry/api/endpoints/organization_events.py +++ b/src/sentry/api/endpoints/organization_events.py @@ -504,9 +504,9 @@ def paginator_factory(scoped_dataset): dashboard_widget_id = request.GET.get("dashboardWidgetId", None) discover_saved_query_id = request.GET.get("discoverSavedQueryId", None) additional_queries = AdditionalQueries( - span=request.GET.getlist("spanQueries"), - log=request.GET.getlist("logQueries"), - metric=request.GET.getlist("metricQueries"), + span=request.GET.getlist("spanQuery"), + log=request.GET.getlist("logQuery"), + metric=request.GET.getlist("metricQuery"), ) def get_rpc_config(): diff --git a/tests/snuba/api/endpoints/test_organization_events_cross_trace.py b/tests/snuba/api/endpoints/test_organization_events_cross_trace.py index a2f5f6a9649da8..c372512aa1dadf 100644 --- a/tests/snuba/api/endpoints/test_organization_events_cross_trace.py +++ b/tests/snuba/api/endpoints/test_organization_events_cross_trace.py @@ -50,7 +50,7 @@ def test_cross_trace_query_with_logs(self) -> None: "orderby": "count()", "project": self.project.id, "dataset": "spans", - "logQueries": ["message:foo"], + "logQuery": ["message:foo"], } ) @@ -102,7 +102,7 @@ def test_cross_trace_query_with_spans(self) -> None: "orderby": "count()", "project": self.project.id, "dataset": "spans", - "spanQueries": ["tags[foo]:six"], + "spanQuery": ["tags[foo]:six"], } ) @@ -167,8 +167,8 @@ def test_cross_trace_query_with_spans_and_logs(self) -> None: "orderby": "count()", "project": self.project.id, "dataset": "spans", - "spanQueries": ["tags[foo]:six"], - "logQueries": ["message:foo"], + "spanQuery": ["tags[foo]:six"], + "logQuery": ["message:foo"], } ) @@ -230,7 +230,7 @@ def test_cross_trace_query_with_multiple_spans(self) -> None: "orderby": "count()", "project": self.project.id, "dataset": "spans", - "spanQueries": ["tags[foo]:six", "tags[foo]:seven"], + "spanQuery": ["tags[foo]:six", "tags[foo]:seven"], } ) @@ -288,7 +288,7 @@ def test_cross_trace_qurey_with_multiple_logs(self) -> None: "orderby": "count()", "project": self.project.id, "dataset": "spans", - "logQueries": ["message:faa", "message:foo"], + "logQuery": ["message:faa", "message:foo"], } )