@@ -5,7 +5,9 @@ use std::time::SystemTime;
55
66use crate :: { OsInfo , SigInfo } ;
77
8- use super :: { build_crash_ping_message, CrashInfo , Experimental , Metadata , StackTrace } ;
8+ use super :: {
9+ build_crash_ping_message, CrashInfo , Experimental , Metadata , StackTrace , TARGET_TRIPLE ,
10+ } ;
911use anyhow:: Context ;
1012use chrono:: { DateTime , Utc } ;
1113use http:: { uri:: PathAndQuery , Uri } ;
@@ -363,6 +365,7 @@ fn build_crash_info_tags(crash_info: &CrashInfo) -> String {
363365 append_signal_tags ( & mut tags, siginfo) ;
364366 }
365367
368+ tags. push_str ( & format ! ( ",target_triple:{TARGET_TRIPLE}" ) ) ;
366369 tags
367370}
368371
@@ -456,6 +459,8 @@ impl ErrorsIntakePayload {
456459 append_signal_tags ( & mut ddtags, sig_info) ;
457460 }
458461
462+ ddtags. push_str ( & format ! ( ",target_triple:{TARGET_TRIPLE}" ) ) ;
463+
459464 let ( error_type, message) = if let Some ( sig_info) = sig_info {
460465 (
461466 Some ( format ! ( "{:?}" , sig_info. si_signo_human_readable) ) ,
@@ -689,6 +694,7 @@ mod tests {
689694 "si_code_human_readable:SEGV_BNDERR" ,
690695 "si_signo:11" ,
691696 "si_signo_human_readable:SIGSEGV" ,
697+ & format ! ( "target_triple:{}" , super :: super :: TARGET_TRIPLE ) ,
692698 ] ;
693699
694700 let expected_metadata_tags = [ "service:foo" , "version:bar" , "language_name:native" ] ;
@@ -726,8 +732,10 @@ mod tests {
726732 "si_code_human_readable:SEGV_BNDERR" ,
727733 "si_signo:11" ,
728734 "si_signo_human_readable:SIGSEGV" ,
735+ & format ! ( "target_triple:{}" , super :: super :: TARGET_TRIPLE ) ,
729736 ] ;
730737
738+ println ! ( "payload.ddtags: {}" , payload. ddtags) ;
731739 for tag in expected_tags {
732740 assert ! (
733741 payload. ddtags. contains( tag) ,
0 commit comments