@@ -238,7 +238,7 @@ async fn full_payload_v1() {
238
238
assert_eq ! ( log[ "ddsource" ] , "curl" . into( ) ) ;
239
239
assert_eq ! ( log[ "ddtags" ] , "one,two,three" . into( ) ) ;
240
240
assert ! ( event. metadata( ) . datadog_api_key( ) . is_none( ) ) ;
241
- assert_eq ! ( log[ log_schema( ) . source_type_key( ) ] , "datadog_agent" . into( ) ) ;
241
+ assert_eq ! ( log[ log_schema( ) . source_type_key( ) . unwrap ( ) . to_string ( ) ] , "datadog_agent" . into( ) ) ;
242
242
assert_eq ! (
243
243
event. metadata( ) . schema_definition( ) ,
244
244
& test_logs_schema_definition( )
@@ -300,7 +300,7 @@ async fn full_payload_v2() {
300
300
assert_eq ! ( log[ "ddsource" ] , "curl" . into( ) ) ;
301
301
assert_eq ! ( log[ "ddtags" ] , "one,two,three" . into( ) ) ;
302
302
assert ! ( event. metadata( ) . datadog_api_key( ) . is_none( ) ) ;
303
- assert_eq ! ( log[ log_schema( ) . source_type_key( ) ] , "datadog_agent" . into( ) ) ;
303
+ assert_eq ! ( log[ log_schema( ) . source_type_key( ) . unwrap ( ) . to_string ( ) ] , "datadog_agent" . into( ) ) ;
304
304
assert_eq ! (
305
305
event. metadata( ) . schema_definition( ) ,
306
306
& test_logs_schema_definition( )
@@ -362,7 +362,7 @@ async fn no_api_key() {
362
362
assert_eq ! ( log[ "ddsource" ] , "curl" . into( ) ) ;
363
363
assert_eq ! ( log[ "ddtags" ] , "one,two,three" . into( ) ) ;
364
364
assert ! ( event. metadata( ) . datadog_api_key( ) . is_none( ) ) ;
365
- assert_eq ! ( log[ log_schema( ) . source_type_key( ) ] , "datadog_agent" . into( ) ) ;
365
+ assert_eq ! ( log[ log_schema( ) . source_type_key( ) . unwrap ( ) . to_string ( ) ] , "datadog_agent" . into( ) ) ;
366
366
assert_eq ! (
367
367
event. metadata( ) . schema_definition( ) ,
368
368
& test_logs_schema_definition( )
@@ -423,7 +423,7 @@ async fn api_key_in_url() {
423
423
assert_eq ! ( log[ "service" ] , "vector" . into( ) ) ;
424
424
assert_eq ! ( log[ "ddsource" ] , "curl" . into( ) ) ;
425
425
assert_eq ! ( log[ "ddtags" ] , "one,two,three" . into( ) ) ;
426
- assert_eq ! ( log[ log_schema( ) . source_type_key( ) ] , "datadog_agent" . into( ) ) ;
426
+ assert_eq ! ( log[ log_schema( ) . source_type_key( ) . unwrap ( ) . to_string ( ) ] , "datadog_agent" . into( ) ) ;
427
427
assert_eq ! (
428
428
& event. metadata( ) . datadog_api_key( ) . as_ref( ) . unwrap( ) [ ..] ,
429
429
"12345678abcdefgh12345678abcdefgh"
@@ -488,7 +488,7 @@ async fn api_key_in_query_params() {
488
488
assert_eq ! ( log[ "service" ] , "vector" . into( ) ) ;
489
489
assert_eq ! ( log[ "ddsource" ] , "curl" . into( ) ) ;
490
490
assert_eq ! ( log[ "ddtags" ] , "one,two,three" . into( ) ) ;
491
- assert_eq ! ( log[ log_schema( ) . source_type_key( ) ] , "datadog_agent" . into( ) ) ;
491
+ assert_eq ! ( log[ log_schema( ) . source_type_key( ) . unwrap ( ) . to_string ( ) ] , "datadog_agent" . into( ) ) ;
492
492
assert_eq ! (
493
493
& event. metadata( ) . datadog_api_key( ) . as_ref( ) . unwrap( ) [ ..] ,
494
494
"12345678abcdefgh12345678abcdefgh"
@@ -559,7 +559,7 @@ async fn api_key_in_header() {
559
559
assert_eq ! ( log[ "service" ] , "vector" . into( ) ) ;
560
560
assert_eq ! ( log[ "ddsource" ] , "curl" . into( ) ) ;
561
561
assert_eq ! ( log[ "ddtags" ] , "one,two,three" . into( ) ) ;
562
- assert_eq ! ( log[ log_schema( ) . source_type_key( ) ] , "datadog_agent" . into( ) ) ;
562
+ assert_eq ! ( log[ log_schema( ) . source_type_key( ) . unwrap ( ) . to_string ( ) ] , "datadog_agent" . into( ) ) ;
563
563
assert_eq ! (
564
564
& event. metadata( ) . datadog_api_key( ) . as_ref( ) . unwrap( ) [ ..] ,
565
565
"12345678abcdefgh12345678abcdefgh"
@@ -706,7 +706,7 @@ async fn ignores_api_key() {
706
706
assert_eq ! ( log[ "service" ] , "vector" . into( ) ) ;
707
707
assert_eq ! ( log[ "ddsource" ] , "curl" . into( ) ) ;
708
708
assert_eq ! ( log[ "ddtags" ] , "one,two,three" . into( ) ) ;
709
- assert_eq ! ( log[ log_schema( ) . source_type_key( ) ] , "datadog_agent" . into( ) ) ;
709
+ assert_eq ! ( log[ log_schema( ) . source_type_key( ) . unwrap ( ) . to_string ( ) ] , "datadog_agent" . into( ) ) ;
710
710
assert ! ( event. metadata( ) . datadog_api_key( ) . is_none( ) ) ;
711
711
assert_eq ! (
712
712
event. metadata( ) . schema_definition( ) ,
@@ -1398,7 +1398,7 @@ async fn split_outputs() {
1398
1398
assert_eq ! ( log[ "service" ] , "vector" . into( ) ) ;
1399
1399
assert_eq ! ( log[ "ddsource" ] , "curl" . into( ) ) ;
1400
1400
assert_eq ! ( log[ "ddtags" ] , "one,two,three" . into( ) ) ;
1401
- assert_eq ! ( log[ log_schema( ) . source_type_key( ) ] , "datadog_agent" . into( ) ) ;
1401
+ assert_eq ! ( log[ log_schema( ) . source_type_key( ) . unwrap ( ) . to_string ( ) ] , "datadog_agent" . into( ) ) ;
1402
1402
assert_eq ! (
1403
1403
& event. metadata( ) . datadog_api_key( ) . as_ref( ) . unwrap( ) [ ..] ,
1404
1404
"12345678abcdefgh12345678abcdefgh"
0 commit comments