Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

fix: run go vet to fix some issues with json tag (#936)

Naman Jain53e7037f48ec
diff --git a/pkg/query-service/godruid/queries.go b/pkg/query-service/godruid/queries.go
index 5fb518f908..ffdeee002d 100644
--- a/pkg/query-service/godruid/queries.go
+++ b/pkg/query-service/godruid/queries.go
@@ -62,7 +62,7 @@ type QueryScan struct {
Limit int64 `json:"limit,omitempty"`
Offset int64 `json:"offset,omitempty"`
BatchSize int64 `json:"batchSize,omitempty"`
- Order string `json:"order",omitempty`
+ Order string `json:"order,omitempty"`
ResultFormat string `json:"resultFormat"`
Context map[string]interface{} `json:"context,omitempty"`
@@ -189,7 +189,7 @@ type TimeBoundaryItem struct {
type TimeBoundary struct {
MinTime string `json:"minTime"`
- MaxTime string `json:"minTime"`
+ MaxTime string `json:"maxTime"`
}
func (q *QueryTimeBoundary) setup() { q.QueryType = "timeBoundary" }