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