Skip to content

Commit

Permalink
Rewrite OpenTelemetry properties to OTel prefix
Browse files Browse the repository at this point in the history
Fixes quarkusio/quarkus#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).
  • Loading branch information
gsmet committed Sep 5, 2023
1 parent c0636bf commit b3fd139
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions recipes/src/main/resources/quarkus-updates/core/3.2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.tracer.sampler
newPropertyKey: quarkus.otel.traces.sampler
- org.openrewrite.properties.ChangePropertyKey:
oldPropertyKey: quarkus.opentelemetry.tracer.sampler.ratio
newPropertyKey: quarkus.otel.traces.sampler.arg
- 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
Expand Down

0 comments on commit b3fd139

Please sign in to comment.