Skip to content

Commit

Permalink
fix(server): fixing context propagation on nats (#3676)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbdias committed Feb 23, 2024
1 parent e9e3601 commit 3db3b9f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/pkg/pipeline/queue.go
Expand Up @@ -82,7 +82,9 @@ func (q Queue[T]) Enqueue(ctx context.Context, item T) {

workerCtx := context.Background()
if propagator := otel.GetTextMapPropagator(); propagator != nil {
var carrier propagation.HeaderCarrier
carrier := make(propagation.HeaderCarrier)
propagator.Inject(ctx, carrier)

workerCtx = propagator.Extract(workerCtx, carrier)
}

Expand Down

0 comments on commit 3db3b9f

Please sign in to comment.