mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-08 19:28:57 +08:00
chore: enable limits for trace queries (#4997)
This commit is contained in:
parent
9f1c45bc32
commit
30bfad527f
@ -4,7 +4,6 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
|
||||||
|
|
||||||
"github.com/ClickHouse/clickhouse-go/v2"
|
"github.com/ClickHouse/clickhouse-go/v2"
|
||||||
"github.com/ClickHouse/clickhouse-go/v2/lib/driver"
|
"github.com/ClickHouse/clickhouse-go/v2/lib/driver"
|
||||||
@ -43,12 +42,6 @@ func (c clickhouseConnWrapper) addClickHouseSettings(ctx context.Context, query
|
|||||||
settings["log_comment"] = logComment
|
settings["log_comment"] = logComment
|
||||||
}
|
}
|
||||||
|
|
||||||
// don't add resource restrictions traces
|
|
||||||
if strings.Contains(query, "signoz_traces") {
|
|
||||||
ctx = clickhouse.Context(ctx, clickhouse.WithSettings(settings))
|
|
||||||
return ctx
|
|
||||||
}
|
|
||||||
|
|
||||||
if c.settings.MaxBytesToRead != "" {
|
if c.settings.MaxBytesToRead != "" {
|
||||||
settings["max_bytes_to_read"] = c.settings.MaxBytesToRead
|
settings["max_bytes_to_read"] = c.settings.MaxBytesToRead
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user