Would OpenTelemetry collector aggregation help (https://last9.io/blog/opentelemetry-metrics-aggregation/)? There should be no app change, and it is handled in the collector pipeline.