also add span result in step_generate_script
@@ -47,6 +47,11 @@ func (s *stepGenerateScript) Run(state multistep.StateBag) multistep.StepAction
if err != nil {
state.Put("err", err)
+ span.SetStatus(trace.Status{
+ Code: trace.StatusCodeUnavailable,
+ Message: err.Error(),
+ })
+
logger.WithField("err", err).Error("couldn't generate build script, erroring job")
err := buildJob.Error(ctx, "An error occurred while generating the build script.")
if err != nil {
