@@ -280,6 +280,7 @@ mod tests {
280280 use apollo_federation:: connectors:: runtime:: responses:: MappedResponse ;
281281 use http:: HeaderValue ;
282282 use http:: header:: CONTENT_LENGTH ;
283+ use opentelemetry_sdk:: resource:: Resource ;
283284 use parking_lot:: Mutex ;
284285 use parking_lot:: MutexGuard ;
285286 use tests:: events:: EventLevel ;
@@ -553,7 +554,7 @@ connector:
553554 display_resource : false ,
554555 ..Default :: default ( )
555556 } ;
556- let format = Json :: new ( Default :: default ( ) , json_format) ;
557+ let format = Json :: new ( Resource :: builder ( ) . build ( ) , json_format) ;
557558 let fmt_layer = FmtLayer :: new ( format, buff. clone ( ) ) . boxed ( ) ;
558559
559560 :: tracing:: subscriber:: with_default (
@@ -574,7 +575,7 @@ connector:
574575 ansi_escape_codes : false ,
575576 ..Default :: default ( )
576577 } ;
577- let format = Text :: new ( Default :: default ( ) , text_format) ;
578+ let format = Text :: new ( Resource :: builder ( ) . build ( ) , text_format) ;
578579 let fmt_layer = FmtLayer :: new ( format, buff. clone ( ) ) . boxed ( ) ;
579580
580581 :: tracing:: subscriber:: with_default (
@@ -592,7 +593,7 @@ connector:
592593 ansi_escape_codes : false ,
593594 ..Default :: default ( )
594595 } ;
595- let format = Text :: new ( Default :: default ( ) , text_format) ;
596+ let format = Text :: new ( Resource :: builder ( ) . build ( ) , text_format) ;
596597 let fmt_layer = FmtLayer :: new ( format, buff. clone ( ) ) . boxed ( ) ;
597598
598599 :: tracing:: subscriber:: with_default (
@@ -641,7 +642,7 @@ connector:
641642 display_resource : false ,
642643 ..Default :: default ( )
643644 } ;
644- let format = Json :: new ( Default :: default ( ) , text_format) ;
645+ let format = Json :: new ( Resource :: builder ( ) . build ( ) , text_format) ;
645646 let fmt_layer = FmtLayer :: new ( format, buff. clone ( ) ) . boxed ( ) ;
646647
647648 :: tracing:: subscriber:: with_default (
@@ -690,7 +691,7 @@ connector:
690691 display_resource : false ,
691692 ..Default :: default ( )
692693 } ;
693- let format = Json :: new ( Default :: default ( ) , text_format) ;
694+ let format = Json :: new ( Resource :: builder ( ) . build ( ) , text_format) ;
694695 let fmt_layer = FmtLayer :: new ( format, buff. clone ( ) ) . boxed ( ) ;
695696
696697 let event_config: events:: Events = serde_yaml:: from_str ( EVENT_CONFIGURATION ) . unwrap ( ) ;
@@ -935,7 +936,7 @@ connector:
935936 display_resource : false ,
936937 ..Default :: default ( )
937938 } ;
938- let format = Json :: new ( Default :: default ( ) , text_format) ;
939+ let format = Json :: new ( Resource :: builder ( ) . build ( ) , text_format) ;
939940 let fmt_layer = FmtLayer :: new (
940941 RateLimitFormatter :: new ( format, & RateLimit :: default ( ) ) ,
941942 buff. clone ( ) ,
@@ -1041,7 +1042,7 @@ subgraph:
10411042 ansi_escape_codes : false ,
10421043 ..Default :: default ( )
10431044 } ;
1044- let format = Text :: new ( Default :: default ( ) , text_format) ;
1045+ let format = Text :: new ( Resource :: builder ( ) . build ( ) , text_format) ;
10451046 let fmt_layer = FmtLayer :: new ( format, buff. clone ( ) ) . boxed ( ) ;
10461047
10471048 let event_config: events:: Events = serde_yaml:: from_str ( EVENT_CONFIGURATION ) . unwrap ( ) ;
0 commit comments