From edde17741db6b069c9832d9e9d34dcb4ba32a750 Mon Sep 17 00:00:00 2001 From: Fabrizio <135109076+fabrizio-grafana@users.noreply.github.com> Date: Mon, 13 Nov 2023 14:31:19 +0100 Subject: [PATCH] Fix trace ID in error message (#78041) --- pkg/tsdb/tempo/trace.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/tsdb/tempo/trace.go b/pkg/tsdb/tempo/trace.go index 02ed21b4245..ed3c43061f3 100644 --- a/pkg/tsdb/tempo/trace.go +++ b/pkg/tsdb/tempo/trace.go @@ -78,7 +78,7 @@ func (s *Service) getTrace(ctx context.Context, pCtx backend.PluginContext, quer if resp.StatusCode != http.StatusOK { ctxLogger.Error("Failed to get trace", "error", err, "function", logEntrypoint()) - result.Error = fmt.Errorf("failed to get trace with id: %v Status: %s Body: %s", model.Query, resp.Status, string(body)) + result.Error = fmt.Errorf("failed to get trace with id: %s Status: %s Body: %s", *model.Query, resp.Status, string(body)) span.RecordError(result.Error) span.SetStatus(codes.Error, result.Error.Error()) return result, nil