mirror of
https://github.com/SigNoz/signoz.git
synced 2026-02-03 08:33:26 +00:00
* feat: json Body Keys * feat: telemetry types * feat: change ExtractBodyPaths * chore: minor comment change * chore: func rename, file rename * chore: change table names * chore: reflect changes from the overhaul * test: fixing test 1 * fix: test TestQueryToKeys * fix: test TestPrepareLogsQuery * chore: remove db * chore: go mod * chore: changes based on review * chore: changes based on review * fix: in LIKE operation * chore: addressed few changes * revert: test file * fix: comparison fix * test: add TestBuildListLogsJSONIndexesQuery * fix: in test TestBuildListLogsJSONIndexesQuery * fix: pull promoted paths in single db call * fix: reducing db calls * test: fix TestBuildListLogsJSONIndexesQuery * fix: test TestConditionForJSONBodySearch * fix: lint try 1 * chore: review changes based on cursor * fix: use enums only --------- Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com> Co-authored-by: Nityananda Gohain <nityanandagohain@gmail.com>
18 lines
266 B
Go
18 lines
266 B
Go
package querybuilder
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
var (
|
|
BodyJSONQueryEnabled = GetOrDefaultEnv("BODY_JSON_QUERY_ENABLED", "false") == "true"
|
|
)
|
|
|
|
func GetOrDefaultEnv(key string, fallback string) string {
|
|
v := os.Getenv(key)
|
|
if len(v) == 0 {
|
|
return fallback
|
|
}
|
|
return v
|
|
}
|