Prometheus: Move converter in prometheus package (#82269)

* use jsoniter from sdk

* move converter into the prometheus

* remove jsonitere

* unit test

* remove redundant ownership
This commit is contained in:
ismail simsek
2024-02-15 15:09:30 +01:00
committed by GitHub
parent 45c7393564
commit 916a7bbb08
49 changed files with 6 additions and 30 deletions
+3 -2
View File
@@ -20,10 +20,11 @@ import (
"go.opentelemetry.io/otel/trace"
"github.com/grafana/grafana-plugin-sdk-go/backend"
"github.com/grafana/grafana/pkg/infra/log"
"github.com/grafana/grafana/pkg/infra/tracing"
"github.com/grafana/grafana/pkg/tsdb/loki/instrumentation"
"github.com/grafana/grafana/pkg/util/converter"
"github.com/grafana/grafana/pkg/tsdb/prometheus/converter"
)
type LokiAPI struct {
@@ -334,7 +335,7 @@ func getSupportingQueryHeaderValue(req *http.Request, supportingQueryType Suppor
value = "datasample"
case SupportingQueryInfiniteScroll:
value = "infinitescroll"
default: //ignore
default: // ignore
}
return value