Zipkin: Improve error source (#99099)

* Zipkin: Improve error source

* Revert file name change
This commit is contained in:
Ivana Huckova
2025-01-17 10:04:33 +01:00
committed by GitHub
parent f9a61e2eb2
commit 5e23b2c07f
3 changed files with 25 additions and 2 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ func queryData(ctx context.Context, dsInfo *datasourceInfo, req *backend.QueryDa
traces, err := dsInfo.ZipkinClient.Trace(query.Query)
if err != nil {
es := backend.ErrorSourcePlugin
if backend.IsDownstreamHTTPError(err) {
if backend.IsDownstreamError(err) {
es = backend.ErrorSourceDownstream
}
response.Responses[q.RefID] = backend.DataResponse{