Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
Comparing source compatibility of opentelemetry-opentracing-shim-1.62.0-SNAPSHOT.jar against opentelemetry-opentracing-shim-1.61.0.jar
No changes.
=== UNCHANGED CLASS: PUBLIC FINAL io.opentelemetry.opentracingshim.OpenTracingShim (not serializable)
=== CLASS FILE FORMAT VERSION: 52.0 <- 52.0
=== UNCHANGED METHOD: PUBLIC STATIC io.opentracing.Tracer createTracerShim(io.opentelemetry.api.OpenTelemetry)
+++ NEW ANNOTATION: java.lang.Deprecated
=== UNCHANGED METHOD: PUBLIC STATIC io.opentracing.Tracer createTracerShim(io.opentelemetry.api.trace.TracerProvider, io.opentelemetry.context.propagation.TextMapPropagator, io.opentelemetry.context.propagation.TextMapPropagator)
+++ NEW ANNOTATION: java.lang.Deprecated
+++ NEW ANNOTATION: java.lang.Deprecated
7 changes: 7 additions & 0 deletions integration-tests/graal-incubating/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import org.gradle.api.JavaVersion
import org.gradle.api.tasks.testing.Test

plugins {
id("otel.java-conventions")
Expand Down Expand Up @@ -45,3 +46,9 @@ graalvmNative {
enabled.set(false)
}
}

tasks.named<Test>("test") {
notCompatibleWithConfigurationCache(
"GraalVM native test agent options are not serializable for this task.",
)
}
5 changes: 5 additions & 0 deletions opentracing-shim/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# OpenTelemetry - OpenTracing Shim

> [!WARNING]
> OpenTracing is deprecated, and this shim is deprecated accordingly. It remains available for
> legacy compatibility, but users should migrate to the OpenTelemetry API directly. See the
> [OpenTelemetry specification guidance on OpenTracing compatibility](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/compatibility/opentracing.md#opentracing-compatibility).

The OpenTracing shim is a bridge layer from OpenTelemetry to the OpenTracing API.
It takes OpenTelemetry Tracer and exposes it as an implementation of an OpenTracing Tracer.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
* OpenTelemetry APIs.
*
* @since 1.26.0
* @deprecated OpenTracing is deprecated in the OpenTelemetry specification. This shim is deprecated
* accordingly and is expected to stop being published sometime in 2027 per spec guidance.
* Prefer migrating to the OpenTelemetry API directly.
*/
@Deprecated
public final class OpenTracingShim {
private OpenTracingShim() {}

Expand All @@ -26,7 +30,9 @@ private OpenTracingShim() {}
*
* @param openTelemetry the {@code OpenTelemetry} instance used to create this shim.
* @return a {@code io.opentracing.Tracer}.
* @deprecated OpenTracing is deprecated. Prefer migrating to the OpenTelemetry API directly.
*/
@Deprecated
public static Tracer createTracerShim(OpenTelemetry openTelemetry) {
TextMapPropagator propagator = openTelemetry.getPropagators().getTextMapPropagator();
return createTracerShim(openTelemetry.getTracerProvider(), propagator, propagator);
Expand All @@ -42,7 +48,9 @@ public static Tracer createTracerShim(OpenTelemetry openTelemetry) {
* @param httpPropagator the propagator used for {@link
* io.opentracing.propagation.Format.Builtin#HTTP_HEADERS} format.
* @return a {@code io.opentracing.Tracer}.
* @deprecated OpenTracing is deprecated. Prefer migrating to the OpenTelemetry API directly.
*/
@Deprecated
public static Tracer createTracerShim(
TracerProvider provider,
TextMapPropagator textMapPropagator,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
*/

/**
* An OpenTracing implementation that delegates to the OpenTelemetry SDK. Use {@link
* io.opentelemetry.opentracingshim.OpenTracingShim} to create tracers using this implementation.
* Legacy OpenTracing compatibility built on top of OpenTelemetry.
*
* <p>OpenTracing is deprecated in the OpenTelemetry specification, and this shim is deprecated
* accordingly. Use {@link io.opentelemetry.opentracingshim.OpenTracingShim} only for legacy
* compatibility while migrating to the OpenTelemetry API.
*/
@ParametersAreNonnullByDefault
package io.opentelemetry.opentracingshim;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Test;

@SuppressWarnings("deprecation") // testing deprecated shim API
class OpenTracingShimTest {

@AfterEach
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;

@SuppressWarnings("deprecation") // testing deprecated shim API
class TracerShimTest {

static final io.opentelemetry.api.trace.Span INVALID_SPAN =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;

@SuppressWarnings("deprecation") // testing deprecated shim API
class OpenTelemetryInteroperabilityTest {

@RegisterExtension
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;

@SuppressWarnings("FutureReturnValueIgnored")
@SuppressWarnings({"FutureReturnValueIgnored", "deprecation"})
class ActiveSpanReplacementTest {
@RegisterExtension
static final OpenTelemetryExtension otelTesting = OpenTelemetryExtension.create();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* <p>For improved readability, ignore the phaser lines as those are there to ensure deterministic
* execution for the tests without sleeps.
*/
@SuppressWarnings("FutureReturnValueIgnored")
@SuppressWarnings({"FutureReturnValueIgnored", "deprecation"})
class ActorPropagationTest {
@RegisterExtension
static final OpenTelemetryExtension otelTesting = OpenTelemetryExtension.create();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;

@SuppressWarnings("deprecation") // testing deprecated shim API
public final class BaggageHandlingTest {
@RegisterExtension
static final OpenTelemetryExtension otelTesting = OpenTelemetryExtension.create();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;

@SuppressWarnings("deprecation") // testing deprecated shim API
class TestClientServerTest {
@RegisterExtension
static final OpenTelemetryExtension otelTesting = OpenTelemetryExtension.create();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
* executed concurrently in different threads which are reused (common pool). Therefore we cannot
* use current active span and activate span. So one issue here is setting correct parent span.
*/
@SuppressWarnings("deprecation") // testing deprecated shim API
class HandlerTest {
@RegisterExtension
static final OpenTelemetryExtension otelTesting = OpenTelemetryExtension.create();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;

@SuppressWarnings("FutureReturnValueIgnored")
@SuppressWarnings({"FutureReturnValueIgnored", "deprecation"})
public final class ErrorReportingTest {
@RegisterExtension
static final OpenTelemetryExtension otelTesting = OpenTelemetryExtension.create();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;

@SuppressWarnings("FutureReturnValueIgnored")
@SuppressWarnings({"FutureReturnValueIgnored", "deprecation"})
public final class LateSpanFinishTest {
@RegisterExtension
static final OpenTelemetryExtension otelTesting = OpenTelemetryExtension.create();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import org.junit.jupiter.api.extension.RegisterExtension;

/** Each request has own instance of ResponseListener. */
@SuppressWarnings("deprecation") // testing deprecated shim API
class ListenerTest {
@RegisterExtension
static final OpenTelemetryExtension otelTesting = OpenTelemetryExtension.create();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* <p>For improved readability, ignore the CountDownLatch lines as those are there to ensure
* deterministic execution for the tests without sleeps.
*/
@SuppressWarnings("FutureReturnValueIgnored")
@SuppressWarnings({"FutureReturnValueIgnored", "deprecation"})
class MultipleCallbacksTest {
@RegisterExtension
static final OpenTelemetryExtension otelTesting = OpenTelemetryExtension.create();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;

@SuppressWarnings("FutureReturnValueIgnored")
@SuppressWarnings({"FutureReturnValueIgnored", "deprecation"})
public final class NestedCallbacksTest {
@RegisterExtension
static final OpenTelemetryExtension otelTesting = OpenTelemetryExtension.create();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
* <p>For improved readability, ignore the phaser lines as those are there to ensure deterministic
* execution for the tests without sleeps.
*/
@SuppressWarnings("deprecation") // testing deprecated shim API
class PromisePropagationTest {
@RegisterExtension
static final OpenTelemetryExtension otelTesting = OpenTelemetryExtension.create();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* There is only one instance of 'RequestHandler' per 'Client'. Methods of 'RequestHandler' are
* executed in the same thread (beforeRequest() and its resulting afterRequest(), that is).
*/
@SuppressWarnings("deprecation") // testing deprecated shim API
public final class HandlerTest {
@RegisterExtension
static final OpenTelemetryExtension otelTesting = OpenTelemetryExtension.create();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* These tests are intended to simulate the kind of async models that are common in java async
* frameworks.
*/
@SuppressWarnings("deprecation") // testing deprecated shim API
class SuspendResumePropagationTest {
@RegisterExtension
static final OpenTelemetryExtension otelTesting = OpenTelemetryExtension.create();
Expand Down
Loading