otel: support signoz cloud ingestion key and TLS

This commit is contained in:
Tommy Verrall
2026-02-16 16:11:31 +01:00
parent 8bb29f4d07
commit cb277fe487
6 changed files with 110 additions and 26 deletions
+8
View File
@@ -46,6 +46,7 @@ pub(crate) struct Cli {
/// OpenTelemetry OTLP collector endpoint (gRPC).
/// Only used when --otel is enabled.
/// For SigNoz Cloud use https://ingest.<region>.signoz.cloud:443
#[clap(
long,
env = "NYMNODE_OTEL_ENDPOINT",
@@ -53,6 +54,11 @@ pub(crate) struct Cli {
)]
pub(crate) otel_endpoint: String,
/// SigNoz Cloud ingestion key for authenticated OTLP export.
/// Only needed for SigNoz Cloud (not self-hosted).
#[clap(long, env = "NYMNODE_OTEL_KEY")]
pub(crate) otel_key: Option<String>,
#[clap(subcommand)]
command: Commands,
}
@@ -114,6 +120,7 @@ impl Cli {
Some(crate::logging::OtelConfig {
endpoint: self.otel_endpoint.clone(),
service_name: "nym-node".to_string(),
ingestion_key: self.otel_key.clone(),
})
} else {
None
@@ -130,6 +137,7 @@ impl Cli {
Some(crate::logging::OtelConfig {
endpoint: self.otel_endpoint.clone(),
service_name: "nym-node".to_string(),
ingestion_key: self.otel_key.clone(),
})
} else {
None