otel: support signoz cloud ingestion key and TLS
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user