quarkus-micrometer-registry icon indicating copy to clipboard operation
quarkus-micrometer-registry copied to clipboard

Add support for capturing configuration of otlp from environment variables with QUARKUS prefix

Open cuichenli opened this issue 1 year ago • 0 comments

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

cuichenli avatar Sep 25 '23 08:09 cuichenli