Skip to content

Commit

Permalink
[fleet] fix telemetry (#32218)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelgavache authored Dec 16, 2024
1 parent e56059f commit f028703
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/fleet/telemetry/telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,9 @@ func StartSpanFromIDs(ctx context.Context, operationName, traceID, parentID stri
spanCtx, err := tracer.Extract(ctxCarrier)
if err != nil {
log.Debugf("failed to extract span context from install script params: %v", err)
return Span{tracer.StartSpan("remote_request")}, ctx
return StartSpanFromContext(ctx, operationName, spanOptions...)
}
spanOptions = append([]ddtrace.StartSpanOption{tracer.ChildOf(spanCtx)}, spanOptions...)

return StartSpanFromContext(ctx, operationName, spanOptions...)
}

Expand Down

0 comments on commit f028703

Please sign in to comment.