diff --git a/cmd/root.go b/cmd/root.go index b58496d2..cf2b5c65 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -218,7 +218,10 @@ func Execute() { // if printing the error was not requested by the appropriate // wrapper, only record the data to honeycomb and sentry, the // command already has handled logging - cmdSpan.SetAttributes(attribute.Bool("ovm.cli.fatalError", true)) + cmdSpan.SetAttributes( + attribute.Bool("ovm.cli.fatalError", true), + attribute.String("ovm.cli.fatalError.msg", err.Error()), + ) cmdSpan.RecordError(err) sentry.CaptureException(err) } diff --git a/cmd/tea_terraform.go b/cmd/tea_terraform.go index 3695de77..46e1be01 100644 --- a/cmd/tea_terraform.go +++ b/cmd/tea_terraform.go @@ -145,6 +145,7 @@ func (m *cmdModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) { span.SetAttributes( attribute.Bool("ovm.cli.fatalError", true), attribute.Int("ovm.cli.fatalError.id", msg.id), + attribute.String("ovm.cli.fatalError.msg", msg.err.Error()), ) sentry.CaptureException(msg.err)