feat: use custom domain name for telemetry (#25782)

closes: https://github.com/influxdata/influxdb3_hub/issues/5
pull/25779/merge
praveen-influx 2025-01-10 19:53:04 +00:00 committed by GitHub
parent 0da0785960
commit 15de3863f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 4 deletions

View File

@ -60,8 +60,7 @@ pub const DEFAULT_DATA_DIRECTORY_NAME: &str = ".influxdb3";
/// The default bind address for the HTTP API.
pub const DEFAULT_HTTP_BIND_ADDR: &str = "0.0.0.0:8181";
pub const DEFAULT_TELMETRY_ENDPOINT: &str =
"https://brs5g5kad1.execute-api.us-east-1.amazonaws.com/v1/";
pub const DEFAULT_TELMETRY_ENDPOINT: &str = "https://telemetry.v3.influxdata.com";
#[derive(Debug, Error)]
pub enum Error {

View File

@ -20,7 +20,7 @@ impl TelemetrySender {
Self {
client,
full_url: base_url
.join("./telemetry")
.join("./telem")
.expect("Cannot set the telemetry request path"),
}
}
@ -124,7 +124,7 @@ mod tests {
let client = reqwest::Client::new();
let mut mock_server = Server::new_async().await;
let mut sender = TelemetrySender::new(client, mock_server.url());
let mock = mock_server.mock("POST", "/telemetry").create_async().await;
let mock = mock_server.mock("POST", "/telem").create_async().await;
let telem_payload = create_sample_payload();
let result = sender.try_sending(&telem_payload).await;