OpenTracing Instrumentation for Memcached Client
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.mvn/wrapper
opentracing-spymemcached
travis
.gitignore
.settings.xml
.travis.yml
LICENSE
README.md
RELEASE.md
header.txt
mvnw
mvnw.cmd
pom.xml

README.md

Build Status Coverage Status Released Version

OpenTracing Memcached Client Instrumentation

OpenTracing instrumentation for Memcached Client.

Installation

Spymemcached

pom.xml

<dependency>
    <groupId>io.opentracing.contrib</groupId>
    <artifactId>opentracing-spymemcached</artifactId>
    <version>VERSION</version>
</dependency>

Usage

// Instantiate tracer
Tracer tracer = ...

// Optionally register tracer with GlobalTracer
GlobalTracer.register(tracer);

Spymemcached

// Create Tracing Memcached Client
MemcachedClient client = new TracingMemcachedClient(tracer, false,
        new InetSocketAddress("localhost", 11211))

// Set an object in the cache
client.set("key", 0, "value")

License

Apache 2.0 License.