Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
4bb3e56
Add implementation for new exporter health metrics
JonasKunz Apr 9, 2025
dd651c3
Use new implementation in GRPC exporters
JonasKunz Apr 9, 2025
20959d8
Use new implementation in HTTP exporters
JonasKunz Apr 10, 2025
4bafbfa
Use new implementation in zipkin exporter
JonasKunz Apr 10, 2025
67fe9ec
Merge remote-tracking branch 'otel/main' into health-metrics
JonasKunz Apr 10, 2025
073ecee
add javadoc since tags
JonasKunz Apr 10, 2025
ba07867
spotless
JonasKunz Apr 10, 2025
5281d9a
Fix javadoc and style issues
JonasKunz Apr 10, 2025
e560424
Added test for HTTP Exporter
JonasKunz Apr 10, 2025
2f29ac2
Implemented duration metric
JonasKunz Apr 10, 2025
a2a78f7
spotless
JonasKunz Apr 10, 2025
0bfa4f4
Added GRPC test
JonasKunz Apr 11, 2025
149ffbd
Added server.* attributes
JonasKunz Apr 11, 2025
22ba608
Added tests for server.* attribute extraction
JonasKunz Apr 16, 2025
8522179
Adjust metric names to now merged semconv PR
JonasKunz Apr 17, 2025
d4afdc9
Merge remote-tracking branch 'otel/HEAD' into health-metrics
JonasKunz Apr 17, 2025
9adacd0
spotless
JonasKunz Apr 17, 2025
676b66c
Implement status code attributes
JonasKunz Apr 17, 2025
6d5bf61
Merge remote-tracking branch 'otel/main' into health-metrics
JonasKunz Apr 28, 2025
ec686d3
Renames
JonasKunz May 5, 2025
ad69fa5
Introduce interface as abstraction
JonasKunz May 5, 2025
a1cd746
Complete renaming of "HealthMetricLevel"
JonasKunz May 5, 2025
48b6320
Remove since tags
JonasKunz May 6, 2025
32943e1
Add tests for semconv attributes
JonasKunz May 6, 2025
d2db75d
Move standard component types to enum
JonasKunz May 6, 2025
5f94bb5
spotless
JonasKunz May 6, 2025
5b71238
Fix compilation
JonasKunz May 6, 2025
ba4dc7e
Merge remote-tracking branch 'otel/main' into health-metrics
JonasKunz May 6, 2025
bd6e410
Fix checks
JonasKunz May 6, 2025
7720b8d
Style fixes
JonasKunz May 6, 2025
68967e7
Move attribute references to instrumentation api
JonasKunz May 6, 2025
1b4948b
Fix tests
JonasKunz May 6, 2025
02aafc1
Fix http sender tests
JonasKunz May 6, 2025
923506e
Add E2E exporter tests
JonasKunz May 7, 2025
7360b62
Merge remote-tracking branch 'otel/HEAD' into health-metrics
JonasKunz May 7, 2025
05d1fba
Self-review fixes
JonasKunz May 7, 2025
e84ea68
Move ServerAttributesUtil call down
JonasKunz May 20, 2025
b919c7e
Remove StandardType interface
JonasKunz May 20, 2025
34cd9ec
Move Signal to upper level
JonasKunz May 20, 2025
374d214
Move namespace and unit to signal enum
JonasKunz May 20, 2025
a5f3178
Move signal to standalone enum
JonasKunz May 20, 2025
7fbf2db
Inline unnecessary ComponentId.put method
JonasKunz May 20, 2025
66cd86e
Add StandardComponentId to not have to pass the type around separately
JonasKunz May 20, 2025
4202870
Merge remote-tracking branch 'otel/main' into health-metrics
JonasKunz May 20, 2025
c5051ed
Rename InternalTelemetrySchemaVersion and its setters
JonasKunz May 20, 2025
1b037a5
Remove DISABLED telemetry schema version
JonasKunz May 20, 2025
3a89f42
Rename and move standard exporter types
JonasKunz May 20, 2025
aa96250
Exclude profiles exporter from metrics
JonasKunz May 20, 2025
b472345
apidiff
JonasKunz May 20, 2025
7d9b16e
fix japicmp
JonasKunz May 20, 2025
51edc50
Update exporters/common/src/test/java/io/opentelemetry/exporter/inter…
JonasKunz May 28, 2025
8ff0381
Update exporters/common/src/test/java/io/opentelemetry/exporter/inter…
JonasKunz May 28, 2025
a52d607
Review fixes
JonasKunz May 28, 2025
165f9a6
Merge remote-tracking branch 'otel/main' into health-metrics
JonasKunz May 28, 2025
03496e8
Use assum to early-out of test
JonasKunz May 28, 2025
b53cbe9
remove Signal.toString
JonasKunz May 30, 2025
6350dff
remove StandardComponentId.toString
JonasKunz May 30, 2025
e307e60
Remove InternalTelemetryVersion.V1_33
JonasKunz May 30, 2025
00b4f2f
spotless
JonasKunz May 30, 2025
8e89011
japicmp
jack-berg Jun 3, 2025
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
Prev Previous commit
Next Next commit
Rename and move standard exporter types
  • Loading branch information
JonasKunz committed May 20, 2025
commit 3a89f42e0dd46238f626dad69656d2f8429b4d48
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ public GrpcExporter(
this.grpcSender = grpcSender;
this.exporterMetrics =
new ExporterInstrumentation(
internalTelemetryVersion,
meterProviderSupplier,
componentId,
endpoint);
internalTelemetryVersion, meterProviderSupplier, componentId, endpoint);
}

public CompletableResultCode export(T exportRequest, int numItems) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import io.opentelemetry.sdk.common.InternalTelemetryVersion;
import io.opentelemetry.sdk.common.export.RetryPolicy;
import io.opentelemetry.sdk.internal.ComponentId;
import io.opentelemetry.sdk.internal.StandardComponentId;
import java.net.URI;
import java.time.Duration;
import java.util.ArrayList;
Expand Down Expand Up @@ -50,7 +51,7 @@ public class GrpcExporterBuilder<T extends Marshaler> {

private static final Logger LOGGER = Logger.getLogger(GrpcExporterBuilder.class.getName());

private final ComponentId.StandardExporterType exporterType;
private final StandardComponentId.ExporterType exporterType;
private final String grpcEndpointPath;
private final Supplier<BiFunction<Channel, String, MarshalerServiceStub<T, ?, ?>>>
grpcStubFactory;
Expand All @@ -64,8 +65,7 @@ public class GrpcExporterBuilder<T extends Marshaler> {
private TlsConfigHelper tlsConfigHelper = new TlsConfigHelper();
@Nullable private RetryPolicy retryPolicy = RetryPolicy.getDefault();
private Supplier<MeterProvider> meterProviderSupplier = GlobalOpenTelemetry::getMeterProvider;
private InternalTelemetryVersion internalTelemetryVersion =
InternalTelemetryVersion.LEGACY;
private InternalTelemetryVersion internalTelemetryVersion = InternalTelemetryVersion.LEGACY;

private ClassLoader serviceClassLoader = GrpcExporterBuilder.class.getClassLoader();
@Nullable private ExecutorService executorService;
Expand All @@ -74,7 +74,7 @@ public class GrpcExporterBuilder<T extends Marshaler> {
@Nullable private Object grpcChannel;

public GrpcExporterBuilder(
ComponentId.StandardExporterType exporterType,
StandardComponentId.ExporterType exporterType,
long defaultTimeoutSecs,
URI defaultEndpoint,
Supplier<BiFunction<Channel, String, MarshalerServiceStub<T, ?, ?>>> grpcStubFactory,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@ public HttpExporter(
this.httpSender = httpSender;
this.exporterMetrics =
new ExporterInstrumentation(
internalTelemetryVersion,
meterProviderSupplier,
componentId,
endpoint);
internalTelemetryVersion, meterProviderSupplier, componentId, endpoint);
}

public CompletableResultCode export(T exportRequest, int numItems) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import io.opentelemetry.sdk.common.export.ProxyOptions;
import io.opentelemetry.sdk.common.export.RetryPolicy;
import io.opentelemetry.sdk.internal.ComponentId;
import io.opentelemetry.sdk.internal.StandardComponentId;
import java.net.URI;
import java.util.ArrayList;
import java.util.Collections;
Expand Down Expand Up @@ -47,7 +48,7 @@ public final class HttpExporterBuilder<T extends Marshaler> {

private static final Logger LOGGER = Logger.getLogger(HttpExporterBuilder.class.getName());

private ComponentId.StandardExporterType exporterType;
private StandardComponentId.ExporterType exporterType;

private String endpoint;

Expand All @@ -62,13 +63,12 @@ public final class HttpExporterBuilder<T extends Marshaler> {
private TlsConfigHelper tlsConfigHelper = new TlsConfigHelper();
@Nullable private RetryPolicy retryPolicy = RetryPolicy.getDefault();
private Supplier<MeterProvider> meterProviderSupplier = GlobalOpenTelemetry::getMeterProvider;
private InternalTelemetryVersion internalTelemetryVersion =
InternalTelemetryVersion.LEGACY;
private InternalTelemetryVersion internalTelemetryVersion = InternalTelemetryVersion.LEGACY;
private ClassLoader serviceClassLoader = HttpExporterBuilder.class.getClassLoader();
@Nullable private ExecutorService executorService;

public HttpExporterBuilder(
ComponentId.StandardExporterType exporterType, String defaultEndpoint) {
StandardComponentId.ExporterType exporterType, String defaultEndpoint) {
this.exporterType = exporterType;

endpoint = defaultEndpoint;
Expand Down Expand Up @@ -159,15 +159,15 @@ public HttpExporterBuilder<T> exportAsJson() {
return this;
}

private static ComponentId.StandardExporterType mapToJsonTypeIfPossible(
ComponentId.StandardExporterType componentType) {
private static StandardComponentId.ExporterType mapToJsonTypeIfPossible(
StandardComponentId.ExporterType componentType) {
switch (componentType) {
case OTLP_HTTP_SPAN_EXPORTER:
return ComponentId.StandardExporterType.OTLP_HTTP_JSON_SPAN_EXPORTER;
return StandardComponentId.ExporterType.OTLP_HTTP_JSON_SPAN_EXPORTER;
case OTLP_HTTP_LOG_EXPORTER:
return ComponentId.StandardExporterType.OTLP_HTTP_JSON_LOG_EXPORTER;
return StandardComponentId.ExporterType.OTLP_HTTP_JSON_LOG_EXPORTER;
case OTLP_HTTP_METRIC_EXPORTER:
return ComponentId.StandardExporterType.OTLP_HTTP_JSON_METRIC_EXPORTER;
return StandardComponentId.ExporterType.OTLP_HTTP_JSON_METRIC_EXPORTER;
default:
return componentType;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
import io.opentelemetry.api.metrics.LongCounter;
import io.opentelemetry.api.metrics.Meter;
import io.opentelemetry.api.metrics.MeterProvider;
import io.opentelemetry.sdk.internal.ComponentId;
import io.opentelemetry.sdk.internal.Signal;
import io.opentelemetry.sdk.internal.StandardComponentId;
import java.util.function.Supplier;
import javax.annotation.Nullable;

Expand Down Expand Up @@ -45,7 +45,7 @@ public class LegacyExporterMetrics implements ExporterMetrics {

LegacyExporterMetrics(
Supplier<MeterProvider> meterProviderSupplier,
ComponentId.StandardExporterType exporterType) {
StandardComponentId.ExporterType exporterType) {
this.meterProviderSupplier = meterProviderSupplier;
this.exporterName = getExporterName(exporterType);
this.transportName = getTransportName(exporterType);
Expand All @@ -55,7 +55,7 @@ public class LegacyExporterMetrics implements ExporterMetrics {
this.failedAttrs = this.seenAttrs.toBuilder().put(ATTRIBUTE_KEY_SUCCESS, false).build();
}

public static boolean isSupportedType(ComponentId.StandardExporterType exporterType) {
public static boolean isSupportedType(StandardComponentId.ExporterType exporterType) {
switch (exporterType) {
case OTLP_GRPC_SPAN_EXPORTER:
case OTLP_HTTP_SPAN_EXPORTER:
Expand Down Expand Up @@ -85,7 +85,7 @@ private static String getTypeString(Signal signal) {
throw new IllegalArgumentException("Unhandled signal type: " + signal);
}

private static String getExporterName(ComponentId.StandardExporterType exporterType) {
private static String getExporterName(StandardComponentId.ExporterType exporterType) {
switch (exporterType) {
case OTLP_GRPC_SPAN_EXPORTER:
case OTLP_HTTP_SPAN_EXPORTER:
Expand All @@ -104,7 +104,7 @@ private static String getExporterName(ComponentId.StandardExporterType exporterT
throw new IllegalArgumentException("Not a supported exporter type: " + exporterType);
}

private static String getTransportName(ComponentId.StandardExporterType exporterType) {
private static String getTransportName(StandardComponentId.ExporterType exporterType) {
switch (exporterType) {
case OTLP_GRPC_SPAN_EXPORTER:
case OTLP_GRPC_LOG_EXPORTER:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ private LongUpDownCounter inflight() {
inflight =
meter()
.upDownCounterBuilder(signal.getExporterMetricNamespace() + ".inflight")
.setUnit( unit)
.setUnit(unit)
.setDescription(
"The number of "
+ unit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import io.opentelemetry.exporter.internal.compression.GzipCompressor;
import io.opentelemetry.exporter.internal.marshal.Marshaler;
import io.opentelemetry.sdk.internal.ComponentId;
import io.opentelemetry.sdk.internal.StandardComponentId;
import java.net.URI;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
Expand All @@ -22,7 +22,7 @@ class GrpcExporterBuilderTest {
void setUp() {
builder =
new GrpcExporterBuilder<>(
ComponentId.StandardExporterType.OTLP_GRPC_SPAN_EXPORTER,
StandardComponentId.ExporterType.OTLP_GRPC_SPAN_EXPORTER,
0,
URI.create("http://localhost:4317"),
null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void build_NoGrpcSenderProvider() {
assertThatThrownBy(
() ->
new GrpcExporterBuilder<>(
ComponentId.StandardExporterType.OTLP_GRPC_SPAN_EXPORTER,
StandardComponentId.ExporterType.OTLP_GRPC_SPAN_EXPORTER,
10,
new URI("http://localhost"),
null,
Expand All @@ -49,7 +49,7 @@ void build_NoGrpcSenderProvider() {
@ParameterizedTest
@EnumSource
@SuppressWarnings("unchecked")
Comment thread
JonasKunz marked this conversation as resolved.
void testInternalTelemetry(ComponentId.StandardExporterType exporterType) {
void testInternalTelemetry(StandardComponentId.ExporterType exporterType) {
String signalMetricPrefix;
String expectedUnit;
switch (exporterType.signal()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void build_NoHttpSenderProvider() {
assertThatThrownBy(
() ->
new HttpExporterBuilder<>(
ComponentId.StandardExporterType.OTLP_HTTP_SPAN_EXPORTER,
StandardComponentId.ExporterType.OTLP_HTTP_SPAN_EXPORTER,
"http://localhost")
.build())
.isInstanceOf(IllegalStateException.class)
Expand All @@ -44,7 +44,7 @@ void build_NoHttpSenderProvider() {

@ParameterizedTest
@EnumSource
Comment thread
JonasKunz marked this conversation as resolved.
void testInternalTelemetry(ComponentId.StandardExporterType exporterType) {
void testInternalTelemetry(StandardComponentId.ExporterType exporterType) {
String signalMetricPrefix;
String expectedUnit;
switch (exporterType.signal()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import io.opentelemetry.sdk.common.CompletableResultCode;
import io.opentelemetry.sdk.common.InternalTelemetryVersion;
import io.opentelemetry.sdk.internal.ComponentId;
import io.opentelemetry.sdk.internal.StandardComponentId;
import io.opentelemetry.sdk.metrics.InstrumentType;
import io.opentelemetry.sdk.metrics.SdkMeterProvider;
import io.opentelemetry.sdk.metrics.data.AggregationTemporality;
Expand Down Expand Up @@ -64,7 +65,7 @@ public AggregationTemporality getAggregationTemporality(
new ExporterInstrumentation(
schemaVersion,
meterProviderSupplier,
ComponentId.generateLazy(ComponentId.StandardExporterType.OTLP_GRPC_SPAN_EXPORTER),
ComponentId.generateLazy(StandardComponentId.ExporterType.OTLP_GRPC_SPAN_EXPORTER),
"http://testing:1234");
verifyNoInteractions(meterProviderSupplier); // Ensure lazy

Expand All @@ -88,7 +89,7 @@ void noopMeterProvider(InternalTelemetryVersion schemaVersion) {
new ExporterInstrumentation(
schemaVersion,
meterProviderSupplier,
ComponentId.generateLazy(ComponentId.StandardExporterType.OTLP_GRPC_SPAN_EXPORTER),
ComponentId.generateLazy(StandardComponentId.ExporterType.OTLP_GRPC_SPAN_EXPORTER),
"http://testing:1234");
verifyNoInteractions(meterProviderSupplier); // Ensure lazy

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import io.opentelemetry.exporter.sender.grpc.managedchannel.internal.UpstreamGrpcSender;
import io.opentelemetry.exporter.sender.okhttp.internal.OkHttpGrpcSender;
import io.opentelemetry.internal.testing.slf4j.SuppressLogger;
import io.opentelemetry.sdk.internal.ComponentId;
import io.opentelemetry.sdk.internal.StandardComponentId;
import java.net.URI;
import java.net.URISyntaxException;
import javax.annotation.Nullable;
Expand All @@ -40,7 +40,7 @@ void build_multipleSendersNoConfiguration() {
assertThatCode(
() ->
new GrpcExporterBuilder<>(
ComponentId.StandardExporterType.OTLP_GRPC_SPAN_EXPORTER,
StandardComponentId.ExporterType.OTLP_GRPC_SPAN_EXPORTER,
10,
new URI("http://localhost"),
() -> DummyServiceFutureStub::newFutureStub,
Expand All @@ -63,7 +63,7 @@ void build_multipleSendersNoConfiguration() {
void build_multipleSendersWithUpstream() throws URISyntaxException {
assertThat(
new GrpcExporterBuilder<>(
ComponentId.StandardExporterType.OTLP_GRPC_SPAN_EXPORTER,
StandardComponentId.ExporterType.OTLP_GRPC_SPAN_EXPORTER,
10,
new URI("http://localhost"),
() -> DummyServiceFutureStub::newFutureStub,
Expand All @@ -83,7 +83,7 @@ void build_multipleSendersWithUpstream() throws URISyntaxException {
void build_multipleSendersWithOkHttp() throws URISyntaxException {
assertThat(
new GrpcExporterBuilder<>(
ComponentId.StandardExporterType.OTLP_GRPC_SPAN_EXPORTER,
StandardComponentId.ExporterType.OTLP_GRPC_SPAN_EXPORTER,
10,
new URI("http://localhost"),
() -> DummyServiceFutureStub::newFutureStub,
Expand All @@ -104,7 +104,7 @@ void build_multipleSendersNoMatch() {
assertThatThrownBy(
() ->
new GrpcExporterBuilder<>(
ComponentId.StandardExporterType.OTLP_GRPC_SPAN_EXPORTER,
StandardComponentId.ExporterType.OTLP_GRPC_SPAN_EXPORTER,
10,
new URI("http://localhost"),
() -> DummyServiceFutureStub::newFutureStub,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import io.opentelemetry.exporter.sender.jdk.internal.JdkHttpSender;
import io.opentelemetry.exporter.sender.okhttp.internal.OkHttpHttpSender;
import io.opentelemetry.internal.testing.slf4j.SuppressLogger;
import io.opentelemetry.sdk.internal.ComponentId;
import io.opentelemetry.sdk.internal.StandardComponentId;
import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;
Expand All @@ -30,7 +30,7 @@ void build_multipleSendersNoConfiguration() {
Assertions.assertThatCode(
() ->
new HttpExporterBuilder<>(
ComponentId.StandardExporterType.OTLP_HTTP_SPAN_EXPORTER,
StandardComponentId.ExporterType.OTLP_HTTP_SPAN_EXPORTER,
"http://localhost")
.build())
.doesNotThrowAnyException();
Expand All @@ -48,7 +48,7 @@ void build_multipleSendersNoConfiguration() {
void build_multipleSendersWithJdk() {
assertThat(
new HttpExporterBuilder<>(
ComponentId.StandardExporterType.OTLP_HTTP_SPAN_EXPORTER, "http://localhost")
StandardComponentId.ExporterType.OTLP_HTTP_SPAN_EXPORTER, "http://localhost")
.build())
.extracting("httpSender")
.isInstanceOf(JdkHttpSender.class);
Expand All @@ -63,7 +63,7 @@ void build_multipleSendersWithJdk() {
void build_multipleSendersWithOkHttp() {
assertThat(
new HttpExporterBuilder<>(
ComponentId.StandardExporterType.OTLP_HTTP_SPAN_EXPORTER, "http://localhost")
StandardComponentId.ExporterType.OTLP_HTTP_SPAN_EXPORTER, "http://localhost")
.build())
.extracting("httpSender")
.isInstanceOf(OkHttpHttpSender.class);
Expand All @@ -79,7 +79,7 @@ void build_multipleSendersNoMatch() {
assertThatThrownBy(
() ->
new HttpExporterBuilder<>(
ComponentId.StandardExporterType.OTLP_HTTP_SPAN_EXPORTER,
StandardComponentId.ExporterType.OTLP_HTTP_SPAN_EXPORTER,
"http://localhost")
.build())
.isInstanceOf(IllegalStateException.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import io.opentelemetry.sdk.common.CompletableResultCode;
import io.opentelemetry.sdk.common.InternalTelemetryVersion;
import io.opentelemetry.sdk.internal.ComponentId;
import io.opentelemetry.sdk.internal.StandardComponentId;
import java.net.URI;
import java.util.Collections;
import java.util.concurrent.TimeUnit;
Expand Down Expand Up @@ -91,7 +92,7 @@ public void setUp() {
Collections::emptyMap,
null),
InternalTelemetryVersion.LATEST,
ComponentId.generateLazy(ComponentId.StandardExporterType.OTLP_GRPC_SPAN_EXPORTER),
ComponentId.generateLazy(StandardComponentId.ExporterType.OTLP_GRPC_SPAN_EXPORTER),
MeterProvider::noop,
"http://localhost");

Expand All @@ -110,13 +111,13 @@ public void setUp() {
null,
null),
InternalTelemetryVersion.LATEST,
ComponentId.generateLazy(ComponentId.StandardExporterType.OTLP_GRPC_SPAN_EXPORTER),
ComponentId.generateLazy(StandardComponentId.ExporterType.OTLP_GRPC_SPAN_EXPORTER),
MeterProvider::noop,
"http://localhost");

httpExporter =
new HttpExporterBuilder<TraceRequestMarshaler>(
ComponentId.StandardExporterType.OTLP_HTTP_SPAN_EXPORTER,
StandardComponentId.ExporterType.OTLP_HTTP_SPAN_EXPORTER,
"http://localhost:" + server.activeLocalPort() + "/v1/traces")
.build();
}
Expand Down
Loading