Rename two package-private instrumenter-api classes
MODIFY
instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/instrumenter/InstrumenterBuilder.java
instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/instrumenter/InstrumenterBuilder.java
@@ -301,12 +301,12 @@ public final class InstrumenterBuilder<REQUEST, RESPONSE> {
static <RQ, RS> InstrumenterConstructor<RQ, RS> propagatingToDownstream(
TextMapSetter<RQ> setter) {
- return builder -> new ClientInstrumenter<>(builder, setter);
+ return builder -> new PropagatingToDownstreamInstrumenter<>(builder, setter);
}
static <RQ, RS> InstrumenterConstructor<RQ, RS> propagatingFromUpstream(
TextMapGetter<RQ> getter) {
- return builder -> new ServerInstrumenter<>(builder, getter);
+ return builder -> new PropagatingFromUpstreamInstrumenter<>(builder, getter);
}
}
}

RENAME
instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/instrumenter/ServerInstrumenter.java
instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/instrumenter/PropagatingFromUpstreamInstrumenter.java
@@ -10,12 +10,13 @@ import io.opentelemetry.context.propagation.ContextPropagators;
import io.opentelemetry.context.propagation.TextMapGetter;
import io.opentelemetry.instrumentation.api.internal.ContextPropagationDebug;
-final class ServerInstrumenter<REQUEST, RESPONSE> extends Instrumenter<REQUEST, RESPONSE> {
+final class PropagatingFromUpstreamInstrumenter<REQUEST, RESPONSE>
+ extends Instrumenter<REQUEST, RESPONSE> {
private final ContextPropagators propagators;
private final TextMapGetter<REQUEST> getter;
- ServerInstrumenter(
+ PropagatingFromUpstreamInstrumenter(
InstrumenterBuilder<REQUEST, RESPONSE> builder, TextMapGetter<REQUEST> getter) {
super(builder);
this.propagators = builder.openTelemetry.getPropagators();

RENAME
instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/instrumenter/ClientInstrumenter.java
instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/instrumenter/PropagatingToDownstreamInstrumenter.java
@@ -9,12 +9,13 @@ import io.opentelemetry.context.Context;
import io.opentelemetry.context.propagation.ContextPropagators;
import io.opentelemetry.context.propagation.TextMapSetter;
-final class ClientInstrumenter<REQUEST, RESPONSE> extends Instrumenter<REQUEST, RESPONSE> {
+final class PropagatingToDownstreamInstrumenter<REQUEST, RESPONSE>
+ extends Instrumenter<REQUEST, RESPONSE> {
private final ContextPropagators propagators;
private final TextMapSetter<REQUEST> setter;
- ClientInstrumenter(
+ PropagatingToDownstreamInstrumenter(
InstrumenterBuilder<REQUEST, RESPONSE> builder, TextMapSetter<REQUEST> setter) {
super(builder);
this.propagators = builder.openTelemetry.getPropagators();

Rename two package-private instrumenter-api classes (#6579)