Open nifrasinnovent opened 9 months ago
func (th *tracingHook) ProcessHook(hook redis.ProcessHook) redis.ProcessHook {
return func(ctx context.Context, cmd redis.Cmder) error {
if !trace.SpanFromContext(ctx).IsRecording() {
return hook(ctx, cmd)
}
....
}
I found, this is causing the issue. There is no SpanFromContext while extracting from NewConsumerMessageCarrier. But i did not understand the reason yet.
I'm facing an issue of instrumenting the redis after i received a message from kafka consumer. But mongo & kafka producer are instrumenting in the same consumer's processing
Expected Behavior
redis should push the spans along with consumer's traceid
Current Behavior
except redis, kafka producer & mongo are instrumenting
Possible Solution
Seems like an issue of the context, but not sure
Steps to Reproduce
`
} `
Context (Environment)
Running on local Ubuntu machine