zipkin-instrumentation-memcached

0.22.0 • Public • Published

zipkin-instrumentation-memcached

npm

This library will wrap the memcached client.

Usage

const {Tracer} = require('zipkin');
const Memcached = require('memcached');
const zipkinClient = require('zipkin-instrumentation-memcached');
 
const localServiceName = 'service-a'; // name of this application
const tracer = new Tracer({ctxImpl, recorder, localServiceName});
 
const connectionString = ''localhost:11211'';
const options = {timeout: 1000};
const memcached = new (zipkinClient(tracer, Memcached))(connectionString, options);
 
// Your application code here
memcached.get('foo', (err, data) => {
  console.log('got', data.foo);
});

Readme

Keywords

none

Package Sidebar

Install

npm i zipkin-instrumentation-memcached

Weekly Downloads

1

Version

0.22.0

License

Apache-2.0

Unpacked Size

22.5 kB

Total Files

8

Last publish

Collaborators

  • openzipkin