Skip to content

Latest commit

 

History

History
55 lines (34 loc) · 1.51 KB

README.md

File metadata and controls

55 lines (34 loc) · 1.51 KB

Build Status Coverage Status Released Version Apache-2.0 license

OpenTracing Neo4j Driver 4.x Instrumentation

OpenTracing instrumentation for Neo4j Driver 4.x.

Installation

pom.xml

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

Usage

// Instantiate tracer
Tracer 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.