mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-12-01 21:07:34 +00:00
refactor: Delegate otlp_protocol to standard OTLP env variables
This commit is contained in:
6 files changed
+20
-64
No files matched your search
@@ -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`. \
|
||||
|
||||
Reference in new issue
Block a user