quarkus-micrometer-registry
quarkus-micrometer-registry copied to clipboard
Add support for capturing configuration of otlp from environment variables with QUARKUS prefix
At the moment, the otlp registry will only try to capture configurations from environment variable like OTEL_SERVICE_NAME and OTEL_RESOURCE_ATTRIBUTES. But the chance is we may specify those environment variable with a QUARKUS prefix and these will not be captured.
https://github.com/quarkiverse/quarkus-micrometer-registry/blob/b7ddc62df77da2e90fd841dbfb05f8eac3ba7421/micrometer-registry-otlp/runtime/src/main/java/io/quarkiverse/micrometer/registry/otlp/OtlpConfig.java#L73 So it would be great if the configuration can also try to capture those ones with a quarkus prefix. Please feel free to correct me if I got anything wrong. Thanks