Skip to content

Commit

Permalink
Remove OpenTelemetry old Config relocations and fallbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
radcortez committed Jun 24, 2024
1 parent ed77ee2 commit a047627
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 305 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class NonAppEndpointsEnabledLegacyConfigurationTest {
.addAsResource(new StringAsset(TestSpanExporterProvider.class.getCanonicalName()),
"META-INF/services/io.opentelemetry.sdk.autoconfigure.spi.traces.ConfigurableSpanExporterProvider"))
.withConfigurationResource("application-default.properties")
.overrideConfigKey("quarkus.opentelemetry.tracer.suppress-non-application-uris", "false");
.overrideConfigKey("quarkus.otel.traces.suppress-non-application-uris", "false");

@Inject
TestSpanExporter testSpanExporter;
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class OtlpExporterBadEndpointTest {
static final QuarkusUnitTest config = new QuarkusUnitTest()
.withEmptyApplication()
.overrideConfigKey("quarkus.otel.traces.exporter", "cdi")
.overrideConfigKey("quarkus.opentelemetry.tracer.exporter.otlp.endpoint", "httz://nada:zero")
.overrideConfigKey("quarkus.otel.exporter.otlp.traces.legacy-endpoint", "httz://nada:zero")
.setExpectedException(IllegalArgumentException.class);

@Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class OtlpExporterConfigTest {
.withEmptyApplication()
.overrideConfigKey("otel.traces.exporter", "cdi")
.overrideConfigKey("otel.exporter.otlp.traces.protocol", "http/protobuf")
.overrideConfigKey("quarkus.opentelemetry.tracer.exporter.otlp.endpoint", "http://localhost ")
.overrideConfigKey("quarkus.otel.exporter.otlp.traces.legacy-endpoint", "http://localhost ")
.overrideConfigKey("quarkus.otel.bsp.schedule.delay", "50")
.overrideConfigKey("quarkus.otel.bsp.export.timeout", "PT1S");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class OtlpExporterDisabledTest {
static final QuarkusUnitTest config = new QuarkusUnitTest()
.withEmptyApplication()
.overrideConfigKey("otel.traces.exporter", "cdi")
.overrideConfigKey("quarkus.opentelemetry.tracer.exporter.otlp.enabled", "false");
.overrideConfigKey("quarkus.otel.exporter.otlp.enabled", "false");

@Inject
OpenTelemetry openTelemetry;
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit a047627

Please sign in to comment.