|
47 | 47 | ) |
48 | 48 | from sentry.search.eap.constants import DOUBLE, MAX_ROLLUP_POINTS, VALID_GRANULARITIES |
49 | 49 | from sentry.search.eap.resolver import SearchResolver |
50 | | -from sentry.search.eap.sampling import handle_downsample_meta |
| 50 | +from sentry.search.eap.sampling import events_meta_from_rpc_request_meta |
51 | 51 | from sentry.search.eap.types import ( |
52 | 52 | CONFIDENCES, |
53 | 53 | AdditionalQueries, |
@@ -364,10 +364,7 @@ def process_table_response( |
364 | 364 | """Process the results""" |
365 | 365 | final_data: SnubaData = [] |
366 | 366 | final_confidence: ConfidenceData = [] |
367 | | - final_meta: EventsMeta = EventsMeta( |
368 | | - fields={}, |
369 | | - full_scan=handle_downsample_meta(rpc_response.meta.downsampled_storage_meta), |
370 | | - ) |
| 367 | + final_meta: EventsMeta = events_meta_from_rpc_request_meta(rpc_response.meta) |
371 | 368 | # Mapping from public alias to resolved column so we know type etc. |
372 | 369 | columns_by_name = {col.public_alias: col for col in table_request.columns} |
373 | 370 |
|
@@ -767,10 +764,7 @@ def run_top_events_timeseries_query( |
767 | 764 | """Process the results""" |
768 | 765 | map_result_key_to_timeseries = defaultdict(list) |
769 | 766 |
|
770 | | - final_meta: EventsMeta = EventsMeta( |
771 | | - fields={}, |
772 | | - full_scan=handle_downsample_meta(rpc_response.meta.downsampled_storage_meta), |
773 | | - ) |
| 767 | + final_meta: EventsMeta = events_meta_from_rpc_request_meta(rpc_response.meta) |
774 | 768 |
|
775 | 769 | if params.debug: |
776 | 770 | set_debug_meta(final_meta, rpc_response.meta, rpc_request) |
|
0 commit comments