ensure otel tracing is passed through all event handlers and clients
This commit is contained in:
@@ -142,7 +142,9 @@ func (s *Subscriber) processEvent(msg *changeEvent) error {
|
||||
"event.type", msg.EventType,
|
||||
)
|
||||
|
||||
ctx, span := tracer.Start(context.Background(), "pubsub.receive", trace.WithAttributes(attribute.String("pubsub.subject", msg.SubjectID.String())))
|
||||
ctx := events.TraceContextFromChangeMessage(context.Background(), msg.ChangeMessage)
|
||||
|
||||
ctx, span := tracer.Start(ctx, "pubsub.receive", trace.WithAttributes(attribute.String("pubsub.subject", msg.SubjectID.String())))
|
||||
|
||||
defer span.End()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user