Java OpenTelemetry Bridge

OpenTracing Bridge for OpenTelemetry Tracers

License

License

GroupId

GroupId

io.opentracing.contrib
ArtifactId

ArtifactId

opentelemetry-bridge
Last Version

Last Version

0.4.0
Release Date

Release Date

Type

Type

jar
Description

Description

Java OpenTelemetry Bridge
OpenTracing Bridge for OpenTelemetry Tracers
Project URL

Project URL

https://github.com/opentracing-contrib/java-opentelemetry-bridge
Source Code Management

Source Code Management

https://github.com/opentracing-contrib/java-opentelemetry-bridge

Download opentelemetry-bridge

How to add to project

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

Dependencies

compile (6)

Group / Artifact Type Version
io.opentelemetry : opentelemetry-sdk jar 0.4.0
io.opentelemetry : opentelemetry-opentracing-shim jar 0.4.0
io.opentelemetry : opentelemetry-exporters-jaeger jar 0.4.0
io.opentelemetry : opentelemetry-exporters-inmemory jar 0.4.0
io.opentelemetry : opentelemetry-exporters-logging jar 0.4.0
io.grpc : grpc-core jar 1.29.0

provided (2)

Group / Artifact Type Version
io.opentracing.contrib : opentracing-tracerresolver jar 0.1.8
io.opentracing : opentracing-api jar 0.33.0

test (1)

Group / Artifact Type Version
junit : junit jar 4.13

Project Modules

There are no modules declared in this project.

OpenTelemetry Tracer Bridge

OpenTracing Bridge for OpenTelemetry Tracers

Build Status Coverage Status Javadocs Released Version

The OpenTelemetry Tracer Bridge is a Trace Exporter that uses the OpenTelemetry OpenTracing Shim to provide a TracerFactory implementation (specified by the OpenTracing TracerResolver).

Tracer parameters can be configured via the system properties:

Parameters

OpenTelemetry Tracer Bridge parameters use the prefix ot.otel.:

Parameter Use Description
ot.otel.exporter Optional Name of the OpenTelemetry exporter:
jaeger, inmemory, or logging.
ot.otel.exporter.reportOnlySampled Optional Whether only sampled spans should be reported.

If ot.otel.exporter=jaeger, the following parameters apply to the Jaeger exporter:

Parameter Use Description
ot.otel.exporter.jaeger.serviceName Required The service name.
ot.otel.exporter.jaeger.address Required Target address (<HOST:PORT>) of the Jaeger gRPC endpoint.
ot.otel.exporter.jaeger.deadline Optional The max waiting time for the collector to process each span batch.

Usage with SpecialAgent

The OpenTracing SpecialAgent automatically instruments 3rd-party libraries in Java applications. Starting with SpecialAgent v1.5.2 (usage updated to spec of SpecialAgent v1.7.0), the OpenTelemetry Tracer Bridge is included as a Trace Exporter, which allows traces to be sent to OpenTelemetry tracers. The OpenTelemetry Tracer Bridge can be enabled with the -Dsa.exporter=otel property:

java -javaagent:opentracing-specialagent-1.7.0.jar \
     -Dsa.exporter=otel \
     -Dot.otel.exporter=jaeger \
     -Dot.otel.exporter.jaeger.serviceName=myService \
     -Dot.otel.exporter.jaeger.address=127.0.0.1:1234 \
     -jar MyService.jar

License

This project is licensed under the Apache 2 License - see the LICENSE.txt file for details.

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.4.0
0.2.0