Skip to content

Commit c934284

Browse files
committed
V2 proxy instead of v4
1 parent 2de589b commit c934284

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

datadog-crashtracker/src/crash_info/errors_intake.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use ddcommon::Endpoint;
1212
use http::Uri;
1313
use serde::Serialize;
1414

15-
const ERROR_INTAKE_AGENT_PATH: &str = "/evp_proxy/v4/api/v2/errorsintake";
15+
const ERROR_INTAKE_AGENT_PATH: &str = "/evp_proxy/v2/api/v2/errorsintake";
1616
const ERROR_INTAKE_DIRECT_PATH: &str = "/api/v2/errorsintake";
1717
const ERROR_INTAKE_SUBDOMAIN: &str = "event-platform-intake";
1818

@@ -563,8 +563,8 @@ mod tests {
563563
assert_eq!(endpoint_9126.url.port_u16(), Some(9126));
564564
assert_eq!(endpoint_9126.url.path(), ERROR_INTAKE_AGENT_PATH);
565565

566-
// This should be the URL that gets built for the test environment
567-
let expected_url = "http://localhost:9126/evp_proxy/v4/api/v2/errorsintake";
566+
// This should be the URL that gets built for the test environment (using v2 to match test agent)
567+
let expected_url = "http://localhost:9126/evp_proxy/v2/api/v2/errorsintake";
568568
assert_eq!(endpoint_9126.url.to_string(), expected_url);
569569
}
570570
}

ddtelemetry/src/config.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ pub const DEFAULT_DD_SITE: &str = "datadoghq.com";
1010
pub const PROD_INTAKE_SUBDOMAIN: &str = "instrumentation-telemetry-intake";
1111

1212
const DIRECT_TELEMETRY_URL_PATH: &str = "/api/v2/apmtelemetry";
13-
// const AGENT_TELEMETRY_URL_PATH: &str = "/telemetry/proxy/api/v2/apmtelemetry";
14-
const AGENT_TELEMETRY_URL_PATH: &str = "/evp_proxy/v4/api/v2/errorsintake";
13+
const AGENT_TELEMETRY_URL_PATH: &str = "/telemetry/proxy/api/v2/apmtelemetry";
1514

1615
#[cfg(unix)]
1716
const TRACE_SOCKET_PATH: &str = "/var/run/datadog/apm.socket";

0 commit comments

Comments
 (0)