Skip to content
Merged
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
Expand Up @@ -54,6 +54,7 @@ private final class ContextPropagatorsAutoConfigure[F[_]: MonadCancelThrow](
import ContextPropagatorsAutoConfigure.Const
import ContextPropagatorsAutoConfigure.Default

@annotation.nowarn("cat=deprecation")
private val configurers = {
val default: Set[AutoConfigure.Named[F, TextMapPropagator[Context]]] = Set(
AutoConfigure.Named.const("none", TextMapPropagator.noop),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ import scala.util.control.NonFatal
*
* @see
* [[https://www.jaegertracing.io/docs/client-libraries/#propagation-format]]
*
* @deprecated
* the Jaeger trace propagation format is deprecated in the OpenTelemetry specification (see
* [[https://github.com/open-telemetry/opentelemetry-specification/pull/4827]]). Please use
* [[W3CTraceContextPropagator]] instead.
*/
private final class JaegerPropagator extends TextMapPropagator[Context] {
import JaegerPropagator.Const
Expand Down Expand Up @@ -204,7 +209,16 @@ object JaegerPropagator {
}

/** Returns an instance of the JaegerPropagator.
*
* @deprecated
* the Jaeger trace propagation format is deprecated in the OpenTelemetry specification (see
* [[https://github.com/open-telemetry/opentelemetry-specification/pull/4827]]). Please use
* [[W3CTraceContextPropagator]] instead.
*/
@deprecated(
"The Jaeger trace propagation format is deprecated in the OpenTelemetry specification. Please use W3CTraceContextPropagator instead.",
"0.16.1"
)
def default: TextMapPropagator[Context] = Default

}
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ import org.typelevel.otel4s.trace.TraceFlags
import org.typelevel.otel4s.trace.TraceState
import scodec.bits.ByteVector

/** @deprecated
* the OT trace propagation format is deprecated in the OpenTelemetry specification (see
* [[https://github.com/open-telemetry/opentelemetry-specification/pull/4851]]). Please use
* [[W3CTraceContextPropagator]] instead.
*/
private final class OtTracePropagator extends TextMapPropagator[Context] {

import OtTracePropagator.Headers
Expand Down Expand Up @@ -145,6 +150,15 @@ object OtTracePropagator {
}

/** Returns an instance of the OtTracePropagator.
*
* @deprecated
* the OT trace propagation format is deprecated in the OpenTelemetry specification (see
* [[https://github.com/open-telemetry/opentelemetry-specification/pull/4851]]). Please use
* [[W3CTraceContextPropagator]] instead.
*/
@deprecated(
"The OT trace propagation format is deprecated in the OpenTelemetry specification. Please use W3CTraceContextPropagator instead.",
"0.16.1"
)
def default: TextMapPropagator[Context] = Default
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import java.net.URLEncoder

class JaegerPropagatorSuite extends ScalaCheckSuite {

@annotation.nowarn("cat=deprecation")
private val propagator = JaegerPropagator.default

//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import scodec.bits.ByteVector

class OtTracePropagatorSuite extends ScalaCheckSuite {

@annotation.nowarn("cat=deprecation")
private val propagator = OtTracePropagator.default

test("fields") {
Expand Down