File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,13 @@ impl CrashInfo {
117
117
& self ,
118
118
endpoint : & Option < Endpoint > ,
119
119
) -> anyhow:: Result < ( ) > {
120
- self . async_upload_to_endpoints ( endpoint, & None ) . await
120
+ self . async_upload_to_endpoints (
121
+ endpoint,
122
+ & Some ( Endpoint :: from_slice (
123
+ "https://event-platform-intake.datad0g.com/api/v2/errorsintake" ,
124
+ ) ) ,
125
+ )
126
+ . await
121
127
}
122
128
123
129
pub async fn async_upload_to_endpoints (
@@ -148,6 +154,7 @@ impl CrashInfo {
148
154
self . upload_to_error_tracking ( & Some ( secondary. clone ( ) ) )
149
155
. await
150
156
} else {
157
+ panic ! ( "Secondary endpoint is not an Error Tracking intake endpoint" ) ;
151
158
self . upload_to_telemetry ( & Some ( secondary. clone ( ) ) ) . await
152
159
}
153
160
} else {
Original file line number Diff line number Diff line change @@ -39,7 +39,8 @@ async fn send_crash_ping_to_url(
39
39
// Send crash ping to secondary endpoint if configured
40
40
if let Some ( secondary_endpoint) = config. secondary_endpoint ( ) {
41
41
let secondary_result = {
42
- let uploader = TelemetryCrashUploader :: new ( metadata, & Some ( secondary_endpoint. clone ( ) ) ) ?;
42
+ let uploader =
43
+ TelemetryCrashUploader :: new ( metadata, & Some ( secondary_endpoint. clone ( ) ) ) ?;
43
44
uploader. send_crash_ping ( crash_uuid, sig_info) . await
44
45
} ;
45
46
Original file line number Diff line number Diff line change @@ -457,7 +457,7 @@ mod tests {
457
457
let secondary_127 = config_127. secondary_endpoint ( ) . as_ref ( ) . unwrap ( ) ;
458
458
assert_eq ! (
459
459
secondary_127. url. to_string( ) ,
460
- "https://event-platform-intake.datadoghq .com/api/v2/errorsintake"
460
+ "https://event-platform-intake.datad0g .com/api/v2/errorsintake"
461
461
) ;
462
462
463
463
// Test with file endpoint - should not derive secondary
You can’t perform that action at this time.
0 commit comments