refactor: Delegate otlp_protocol to standard OTLP env variables

This commit is contained in:
Jade Ellis committed 2026-10-12 10:03:16 +01:00
1 parent fd4cb4a306
commit 3975d31b91
6 files changed
+20 -64

No files matched your search

-8
View File
@@ -194,14 +194,6 @@ pub fn check(config: &Config) -> Result {
);
}
if !matches!(config.otlp_protocol.as_str(), "http" | "grpc") {
warn!(
"Invalid OTLP protocol '{}', falling back to HTTP. Valid options are 'http' or \
'grpc'.",
config.otlp_protocol
);
}
if config.allow_prometheus_metrics && config.prometheus_metrics_token.is_none() {
warn!(
"The Prometheus metrics endpoint is enabled without `prometheus_metrics_token`. \