Like this??
net/http.HandlerFunc.ServeHTTP(0x0?, {0x1a5e8a0?, 0xc0005d3c80?}, 0xc0002c9ac0?)
/usr/local/go/src/net/http/server.go:2084 +0x2f
github.com/gorilla/handlers.CompressHandlerLevel.func1({0x1a5d820?, 0xc000319c00}, 0xc0006dcd00)
/go/pkg/mod/github.com/gorilla/handlers@v1.5.1/compress.go:141 +0x663
net/http.HandlerFunc.ServeHTTP(0xc00077fe49?, {0x1a5d820?, 0xc000319c00?}, 0xc00023c400?)
/usr/local/go/src/net/http/server.go:2084 +0x2f
net/http.serverHandler.ServeHTTP({0xc000552360?}, {0x1a5d820, 0xc000319c00}, 0xc0006dcd00)
/usr/local/go/src/net/http/server.go:2916 +0x43b
net/http.(*conn).serve(0xc0002dfb80, {0x1a5ec90, 0xc000533980})
/usr/local/go/src/net/http/server.go:1966 +0x5d7
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:3071 +0x4db
2023/07/04 09
4436 http: panic serving 172.18.0.9
42342 runtime error: invalid memory address or nil pointer dereference
goroutine 767 [running]:
net/http.(*conn).serve.func1()
/usr/local/go/src/net/http/server.go:1825 +0xbf
panic({0x147eb60, 0x2356900})
/usr/local/go/src/runtime/panic.go:844 +0x258
go.signoz.io/signoz/pkg/query-service/app/clickhouseReader.(*ClickHouseReader).GetTTL(0xc0002c7200, {0x1a5ec58, 0xc0005d3f20}, 0x0?)
/go/src/github.com/signoz/signoz/pkg/query-service/app/clickhouseReader/reader.go:2669 +0x341
go.signoz.io/signoz/pkg/query-service/app.(*APIHandler).getTTL(0xc0006e2100, {0x1a5d310, 0xc0005a93c8}, 0xc0006dd400)
/go/src/github.com/signoz/signoz/pkg/query-service/app/http_handler.go:1587 +0xb6
go.signoz.io/signoz/pkg/query-service/app.(*AuthMiddleware).ViewAccess.func1({0x1a5d310, 0xc0005a93c8}, 0x48ff17?)
/go/src/github.com/signoz/signoz/pkg/query-service/app/auth.go:46 +0x104
net/http.HandlerFunc.ServeHTTP(0x30?, {0x1a5d310?, 0xc0005a93c8?}, 0x10?)
/usr/local/go/src/net/http/server.go:2084 +0x2f
go.signoz.io/signoz/ee/query-service/app.loggingMiddleware.func1({0x1a5d310, 0xc0005a93c8}, 0x1a46e01?)
/go/src/github.com/signoz/signoz/ee/query-service/app/server.go:279 +0xc7
net/http.HandlerFunc.ServeHTTP(0x162e589?, {0x1a5d310?, 0xc0005a93c8?}, 0x8?)
/usr/local/go/src/net/http/server.go:2084 +0x2f
go.signoz.io/signoz/ee/query-service/app.(*Server).analyticsMiddleware.func1({0x1a5e8a0?, 0xc0005d3ec0}, 0xdf8475801?)
/go/src/github.com/signoz/signoz/ee/query-service/app/server.go:385 +0x134
net/http.HandlerFunc.ServeHTTP(0x1a5ec90?, {0x1a5e8a0?, 0xc0005d3ec0?}, 0x14?)
/usr/local/go/src/net/http/server.go:2084 +0x2f
go.signoz.io/signoz/ee/query-service/app.setTimeoutMiddleware.func1({0x1a5e8a0, 0xc0005d3ec0}, 0xc0006dd300)
/go/src/github.com/signoz/signoz/ee/query-service/app/server.go:413 +0x2f4
net/http.HandlerFunc.ServeHTTP(0xc0006dd200?, {0x1a5e8a0?, 0xc0005d3ec0?}, 0xcc0000c0006b2dc0?)
/usr/local/go/src/net/http/server.go:2084 +0x2f
github.com/gorilla/mux.(*Router).ServeHTTP(0xc0006e2180, {0x1a5e8a0, 0xc0005d3ec0}, 0xc0006dd100)
/go/pkg/mod/github.com/gorilla/mux@v1.8.0/mux.go:210 +0x1cf
github.com/rs/cors.(*Cors).Handler.func1({0x1a5e8a0, 0xc0005d3ec0}, 0xc0006dd100)
/go/pkg/mod/github.com/rs/cors@v1.8.2/cors.go:231 +0x1c4
net/http.HandlerFunc.ServeHTTP(0x0?, {0x1a5e8a0?, 0xc0005d3ec0?}, 0xc000610250?)
/usr/local/go/src/net/http/server.go:2084 +0x2f
github.com/gorilla/handlers.CompressHandlerLevel.func1({0x1a5d820?, 0xc000319ce0}, 0xc0006dd100)
/go/pkg/mod/github.com/gorilla/handlers@v1.5.1/compress.go:141 +0x663
net/http.HandlerFunc.ServeHTTP(0xc000046139?, {0x1a5d820?, 0xc000319ce0?}, 0xc00023c400?)
/usr/local/go/src/net/http/server.go:2084 +0x2f
net/http.serverHandler.ServeHTTP({0xc000552750?}, {0x1a5d820, 0xc000319ce0}, 0xc0006dd100)
/usr/local/go/src/net/http/server.go:2916 +0x43b
net/http.(*conn).serve(0xc0002dfe00, {0x1a5ec90, 0xc000533980})
/usr/local/go/src/net/http/server.go:1966 +0x5d7
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:3071 +0x4db