Skip to content

Commit

Permalink
Fix the key for Span of Tracing in pipelinerun reconciler
Browse files Browse the repository at this point in the history
Fixes #6783
  • Loading branch information
khrm authored and tekton-robot committed Jun 19, 2023
1 parent 55fbbfe commit d267743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/reconciler/pipelinerun/tracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func initTracing(ctx context.Context, tracerProvider trace.TracerProvider, pr *v
// Create a new root span since there was no parent spanContext provided through annotations
ctxWithTrace, span := tracerProvider.Tracer(TracerName).Start(ctx, "PipelineRun:Reconciler")
defer span.End()
span.SetAttributes(attribute.String("taskrun", pr.Name), attribute.String("namespace", pr.Namespace))
span.SetAttributes(attribute.String("pipelinerun", pr.Name), attribute.String("namespace", pr.Namespace))

pro.Inject(ctxWithTrace, propagation.MapCarrier(spanContext))

Expand Down

0 comments on commit d267743

Please sign in to comment.