We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a91d8aa commit 1694772Copy full SHA for 1694772
main.go
@@ -54,9 +54,18 @@ func getSteps(ctx context.Context, conf actionConfig) error {
54
}
55
for _, step := range job.Steps {
56
_, stepSpan := tracer.Start(ctx, *step.Name, trace.WithTimestamp(step.StartedAt.Time))
57
- stepSpan.End(trace.WithTimestamp(step.CompletedAt.Time))
+ if step.CompletedAt != nil {
58
+ stepSpan.End(trace.WithTimestamp(step.CompletedAt.Time))
59
+ } else {
60
+ stepSpan.End()
61
+ }
62
- jobSpan.End(trace.WithTimestamp(job.CompletedAt.Time))
63
+ if job.CompletedAt != nil {
64
+ jobSpan.End(trace.WithTimestamp(job.CompletedAt.Time))
65
66
+ jobSpan.End()
67
68
+
69
70
71
return nil
0 commit comments