From e6948d5fd6c2a6b5a57edeed9d79c51aa72aea76 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Tue, 5 Sep 2023 11:03:36 +0200 Subject: [PATCH] Rewrite OpenTelemetry properties to OTel prefix Fixes https://github.com/quarkusio/quarkus/issues/32064 Note that I haven't handled Yaml config files as it doesn't work very well when adding a new prefix (it does not separate configuration properties on dots and thus doesn't work properly with Quarkus). --- .../resources/quarkus-updates/core/3.2.yaml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/recipes/src/main/resources/quarkus-updates/core/3.2.yaml b/recipes/src/main/resources/quarkus-updates/core/3.2.yaml index eab3d6fa5f..b5f246ae10 100644 --- a/recipes/src/main/resources/quarkus-updates/core/3.2.yaml +++ b/recipes/src/main/resources/quarkus-updates/core/3.2.yaml @@ -23,6 +23,33 @@ recipeList: - org.openrewrite.properties.ChangePropertyKey: oldPropertyKey: quarkus.transaction-manager.object-store-directory newPropertyKey: quarkus.transaction-manager.object-store.directory +- org.openrewrite.properties.ChangePropertyKey: + oldPropertyKey: quarkus.opentelemetry.enabled + newPropertyKey: quarkus.otel.enabled +- org.openrewrite.properties.ChangePropertyKey: + oldPropertyKey: quarkus.opentelemetry.tracer.enabled + newPropertyKey: quarkus.otel.traces.enabled +- org.openrewrite.properties.ChangePropertyKey: + oldPropertyKey: quarkus.opentelemetry.tracer.suppress-non-application-uris + newPropertyKey: quarkus.otel.traces.suppress-non-application-uris +- org.openrewrite.properties.ChangePropertyKey: + oldPropertyKey: quarkus.opentelemetry.tracer.include-static-resources + newPropertyKey: quarkus.otel.traces.include-static-resources +- org.openrewrite.properties.ChangePropertyKey: + oldPropertyKey: quarkus.opentelemetry.propagators + newPropertyKey: quarkus.otel.propagators +- org.openrewrite.properties.ChangePropertyKey: + oldPropertyKey: quarkus.opentelemetry.tracer.resource-attributes + newPropertyKey: quarkus.otel.resource.attributes +- org.openrewrite.properties.ChangePropertyKey: + oldPropertyKey: quarkus.opentelemetry.tracer.exporter.otlp.enabled + newPropertyKey: quarkus.otel.exporter.otlp.enabled +- org.openrewrite.properties.ChangePropertyKey: + oldPropertyKey: quarkus.opentelemetry.tracer.exporter.otlp.headers + newPropertyKey: quarkus.otel.exporter.otlp.traces.headers +- org.openrewrite.properties.ChangePropertyKey: + oldPropertyKey: quarkus.opentelemetry.tracer.exporter.otlp.endpoint + newPropertyKey: quarkus.otel.exporter.otlp.traces.legacy-endpoint ##### # Adjust properties in application.yml/yaml