This library will wrap the redis client.
const {Tracer} = require('zipkin');
const Redis = require('redis');
const zipkinClient = require('zipkin-instrumentation-redis');
const tracer = new Tracer({ctxImpl, recorder}); // configure your tracer properly here
const redisConnectionOptions = {
host: 'localhost',
port: '6379'
};
const redis = zipkinClient(tracer, Redis, redisConnectionOptions);
// Your application code here
redis.get('foo', (err, data) => {
console.log('got', data.foo);
});