Skip to content

hypnoce/java-curator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status Released Version

opentracing-curator

OpenTracing instrumentation for curator framework

Installation

pom.xml

<dependency>
    <groupId>io.opentracing.contrib</groupId>
    <artifactId>opentracing-curator</artifactId>
    <version>0.0.1</version>
</dependency>

build.gradle

compile 'io.opentracing.contrib:opentracing-curator:0.0.1'

Usage

Add the tracing module in your list

CuratorFramework client = ...;
TracerDriver tracerDrivier = new OpentracingCuratorDriver();
client.getZookeeperClient().setTracerDriver(tracerDrivier);

Alternatively, you can define the peer service name

CuratorFramework client = ...;
TracerDriver tracerDrivier = new OpentracingCuratorDriver("peerServiceName");
client.getZookeeperClient().setTracerDriver(tracerDrivier);

You can find more info on curator here

Tracing tags

The following tags are added to traces :

Span tag name Notes
span.kind client
component java-curator
peer.service if exists, the peer service name set in OpentracingCuratorDriver ctor
error true if any error occurred. false otherwise
session.id the zookeeper session id of the current operation
path if exists, the zookeeper node on which the operation took place

About

OpenTracing Instrumentation for Curator framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors