From 702f94916b3bf8da1381aa63e796a413347a5b87 Mon Sep 17 00:00:00 2001 From: Lyndon Maydwell Date: Wed, 13 Sep 2023 10:41:16 +1000 Subject: [PATCH] Adding SERVICE_TOKEN_SECRET to Rust SDK Serve command --- rust-connector-sdk/src/default_main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rust-connector-sdk/src/default_main.rs b/rust-connector-sdk/src/default_main.rs index 8a8f1b38..c3e55c43 100644 --- a/rust-connector-sdk/src/default_main.rs +++ b/rust-connector-sdk/src/default_main.rs @@ -55,6 +55,8 @@ struct ServeCommand { otlp_endpoint: Option, // NOTE: `tracing` crate uses `OTEL_EXPORTER_OTLP_TRACES_ENDPOINT` ENV variable, but we want to control the endpoint via CLI interface #[arg(long, value_name = "PORT", env = "PORT", default_value = "8100")] port: Port, + #[arg(long, value_name = "SERVICE_TOKEN_SECRET", env = "SERVICE_TOKEN_SECRET")] + service_token_secret: Option, } #[derive(Clone, Parser)]