mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-24 10:56:53 +00:00
feat(telemetrymeter): deprecate the signal and use aggregation instead
This commit is contained in:
parent
a193794403
commit
3e41397ef7
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user