feat(telemetrymeter): deprecate the signal and use aggregation instead

This commit is contained in:
vikrantgupta25 2025-08-03 01:38:04 +05:30
parent a193794403
commit 3e41397ef7
No known key found for this signature in database
GPG Key ID: F8440BDE36411E79

View File

@ -15,7 +15,7 @@ const (
)
var (
oneMonthInMilliseconds = uint64(time.Hour * 24 * 30)
oneMonthInMilliseconds = uint64(time.Hour.Milliseconds() * 24 * 30)
// when the query requests for almost 1 day, but not exactly 1 day, we need to add an offset to the end time
// to make sure that we are using the correct table
@ -27,7 +27,7 @@ var (
// start and end are in milliseconds
// we have two tables for samples
// 1. distributed_samples
// 2. distributed_samples_v4_agg_1d - for queries with time range above or equal to 30 days
// 2. distributed_samples_agg_1d - for queries with time range above or equal to 30 days
// if the `timeAggregation` is `count_distinct` we can't use the aggregated tables because they don't support it
func WhichSamplesTableToUse(
start, end uint64,