OpenTracing Instrumentation for Solr Client


License

License

Categories

Categories

CLI User Interface
GroupId

GroupId

io.opentracing.contrib
ArtifactId

ArtifactId

opentracing-solr-client
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

OpenTracing Instrumentation for Solr Client
OpenTracing Instrumentation for Solr Client
Project URL

Project URL

https://github.com/opentracing-contrib/java-solr-client
Source Code Management

Source Code Management

http://github.com/opentracing-contrib/java-solr-client

Download opentracing-solr-client

How to add to project

<!-- https://jarcasting.com/artifacts/io.opentracing.contrib/opentracing-solr-client/ -->
<dependency>
    <groupId>io.opentracing.contrib</groupId>
    <artifactId>opentracing-solr-client</artifactId>
    <version>0.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/io.opentracing.contrib/opentracing-solr-client/
implementation 'io.opentracing.contrib:opentracing-solr-client:0.1.0'
// https://jarcasting.com/artifacts/io.opentracing.contrib/opentracing-solr-client/
implementation ("io.opentracing.contrib:opentracing-solr-client:0.1.0")
'io.opentracing.contrib:opentracing-solr-client:jar:0.1.0'
<dependency org="io.opentracing.contrib" name="opentracing-solr-client" rev="0.1.0">
  <artifact name="opentracing-solr-client" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.opentracing.contrib', module='opentracing-solr-client', version='0.1.0')
)
libraryDependencies += "io.opentracing.contrib" % "opentracing-solr-client" % "0.1.0"
[io.opentracing.contrib/opentracing-solr-client "0.1.0"]

Dependencies

compile (3)

Group / Artifact Type Version
io.opentracing : opentracing-api jar 0.32.0
org.apache.solr : solr-solrj jar 7.7.1
io.opentracing : opentracing-util jar 0.32.0

test (3)

Group / Artifact Type Version
org.apache.solr : solr-core jar 7.7.1
io.opentracing : opentracing-mock jar 0.32.0
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

Build Status Coverage Status Released Version Apache-2.0 license

OpenTracing Solr Client Instrumentation

OpenTracing instrumentation for Solr Client.

Installation

pom.xml

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

Usage

// Instantiate tracer
Tracer tracer = ...

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

HttpSolrClient

// Instantiate HttpSolrClient using TracingHttpSolrClientBuilder
HttpSolrClient client = new TracingHttpSolrClientBuilder(solrUrl, tracer).build();

// If tracer is registered with GlobalTracer:
HttpSolrClient client = new TracingHttpSolrClientBuilder(solrUrl).build();

SolrClient implementations

Usage of other SolrClient implementations requires providing TracingHttpClient as HttpClient e.g.:

CloudSolrClient client = new CloudSolrClient.Builder(urls)
        .withHttpClient(new TracingHttpClient(HttpClientUtil.createClient(null), tracer))
        .build()

License

Apache 2.0 License.

io.opentracing.contrib

3rd-Party OpenTracing API Contributions

3rd-party contributions that use OpenTracing. **The repositories in this org are *not* affiliated with the CNCF.**

Versions

Version
0.1.0
0.0.2
0.0.1