Skip to content

Commit cc739ed

Browse files
committed
fix nil start times
1 parent 1694772 commit cc739ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ func getSteps(ctx context.Context, conf actionConfig) error {
4848
}
4949

5050
for _, job := range jobs.Jobs {
51-
ctx, jobSpan := tracer.Start(ctx, *job.Name, trace.WithTimestamp(job.StartedAt.Time))
51+
ctx, jobSpan := tracer.Start(ctx, *job.Name, trace.WithTimestamp(job.GetStartedAt().Time))
5252
if err != nil {
5353
return err
5454
}
5555
for _, step := range job.Steps {
56-
_, stepSpan := tracer.Start(ctx, *step.Name, trace.WithTimestamp(step.StartedAt.Time))
56+
_, stepSpan := tracer.Start(ctx, *step.Name, trace.WithTimestamp(step.GetStartedAt().Time))
5757
if step.CompletedAt != nil {
5858
stepSpan.End(trace.WithTimestamp(step.CompletedAt.Time))
5959
} else {

0 commit comments

Comments
 (0)