feat(telemetry): add resource detection and better default

This commit is contained in:
Daniel Lundin 2025-01-08 20:57:31 +01:00
parent e297e16cfb
commit 3ccfb881b5
Signed by: dln
SSH key fingerprint: SHA256:dQy1Xj3UiqJYpKR5ggQ2bxgz4jCH8IF+k3AB8o0kmdI
9 changed files with 80 additions and 52 deletions

View file

@ -1,9 +1,9 @@
[package]
name = "patagia-controller"
description = "Patagia controller server"
version = "0.1.0"
description = "Patagia control plane server"
edition = "2021"
license = "MPL-2.0"
version.workspace = true
[dependencies]
anyhow.workspace = true

View file

@ -18,7 +18,7 @@ struct Cli {
#[arg(
long = "telemetry-otlp-endpoint",
default_value = "http://localhost:4317",
env = "OTEL_EXPORTER_OTLP_ENDPOINT",
env = "OTEL_EXPORTER_OTLP_ENDPOINT"
)]
otlp_endpoint: Option<String>,