OpenTracing Instrumentation for Hazelcast
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
src
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 Hazelcast Instrumentation

OpenTracing instrumentation for Hazelcast.

Requirements

  • Java 8+

Installation

pom.xml

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

Usage

// Instantiate tracer
Tracer tracer = ...

// Register tracer with GlobalTracer:
GlobalTracer.register(tracer);

// Decorate HazelcastInstance with Tracing HazelcastInstance:
HazelcastInstance hazelcast = new TracingHazelcastInstance(Hazelcast.newHazelcastInstance(config), 
                                                           false);

// Get Map: 
ConcurrentMap<String, String> map = hazelcast.getMap("distributed-map");
map.put("key", "value");

License

Apache 2.0 License.