Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions snuba/web/rpc/v1/resolvers/R_eap_items/resolver_time_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,12 +469,13 @@ def resolve(
# if the user passes it in
assert len(in_msg.aggregations) == 0

# This metric is expected to be 0, aggregation is deprecated and should be converted to
# conditional aggregation. This metric is to verify before deprecating in the protobuf.
# @kylemumma 01/27/2026
for expr in in_msg.expressions:
if expr.WhichOneof("expression") == "aggregation":
self._metrics_backend.increment("aggregation_expression")
# aggregation is deprecated, it gets converted to conditional_aggregation
if state.get_int_config("aggregation_deprecation_enabled", 1):
for expr in in_msg.expressions:
if expr.WhichOneof("expression") == "aggregation":
raise RuntimeError(
"Unexpected state: aggregation is deprecated and should have been converted to conditional_aggregation"
)

query_settings = setup_trace_query_settings() if in_msg.meta.debug else HTTPQuerySettings()
try:
Expand Down
Loading