Просмотр исходного кода

fix(trace-explorer): Use max limit for trace spans query (#69080)

This was using the default of 50 and couldn't generate a good breakdown.
Tony Xiao 10 месяцев назад
Родитель
Сommit
23a9766bb5
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      src/sentry/api/endpoints/organization_traces.py

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

@@ -154,6 +154,7 @@ class OrganizationTracesEndpoint(OrganizationEventsV2EndpointBase):
                     # limit the number of segments we fetch per trace so a single
                     # large trace does not result in the rest being blank
                     limitby=("trace", int(10_000 / len(spans_by_trace))),
+                    limit=10_000,
                     config=QueryBuilderConfig(
                         functions_acl=["trace_name", "first_seen", "last_seen"],
                         transform_alias_to_input_format=True,