mirror of
https://github.com/grafana/grafana.git
synced 2024-11-28 19:54:10 -06:00
Loki: Fix nil pointer in api.go (#78727)
This commit is contained in:
parent
6e0a06e52a
commit
777d119a80
@ -213,7 +213,7 @@ func (api *LokiAPI) DataQuery(ctx context.Context, query lokiQuery, responseOpts
|
||||
|
||||
if res.Error != nil {
|
||||
span.RecordError(res.Error)
|
||||
span.SetStatus(codes.Error, err.Error())
|
||||
span.SetStatus(codes.Error, res.Error.Error())
|
||||
instrumentation.UpdatePluginParsingResponseDurationSeconds(ctx, time.Since(start), "error")
|
||||
api.log.Error("Error parsing response from loki", "error", res.Error, "metricDataplane", responseOpts.metricDataplane, "duration", time.Since(start), "stage", stageParseResponse)
|
||||
return nil, res.Error
|
||||
|
Loading…
Reference in New Issue
Block a user