OpenTracing instrumentation for Neo4j Driver
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 Neo4j Driver Instrumentation

OpenTracing instrumentation for Neo4j Driver.

Installation

pom.xml

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

Usage

// Instantiate tracer
Tracer tracer = ...

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

// Decorate Neo4j Driver with Tracing Driver
Driver driver = new TracingDriver(GraphDatabase.driver(...), tracer);

OGM

// Create BoltDriver from decorated neo4j driver:
Driver boltDriver = new BoltDriver(new TracingDriver(GraphDatabase.driver(...), tracer));

// Create Session Factory
SessionFactory sessionFactory = new SessionFactory(boltDriver);

License

Apache 2.0 License.