File tree Expand file tree Collapse file tree 2 files changed +15
-6
lines changed
Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,10 @@ pub fn init_tracing(
2121) -> anyhow:: Result < ( Targets , SdkTracer ) > {
2222 global:: set_text_map_propagator ( TraceContextPropagator :: new ( ) ) ;
2323
24- info ! ( "OTLP endpoint: {}" , otlp_endpoint) ;
24+ info ! (
25+ message = "OTLP endpoint" ,
26+ endpoint = %otlp_endpoint
27+ ) ;
2528 let h = format ! (
2629 "http://{}:{}" ,
2730 std:: env:: var( "DD_AGENT_HOST" ) . unwrap_or_else( |_| "localhost" . to_string( ) ) ,
Original file line number Diff line number Diff line change @@ -97,10 +97,6 @@ async fn main() -> anyhow::Result<()> {
9797 }
9898 } ;
9999
100- info ! (
101- "host: {}" ,
102- std:: env:: var( "DD_AGENT_HOST" ) . unwrap_or_else( |_| "unknown" . to_string( ) )
103- ) ;
104100 if config. tracing_enabled {
105101 let ( trace_filter, tracer) = init_tracing (
106102 env ! ( "CARGO_PKG_NAME" ) . to_string ( ) ,
@@ -141,7 +137,17 @@ async fn main() -> anyhow::Result<()> {
141137 message = "Starting ingress service" ,
142138 address = %config. address,
143139 port = config. port,
144- mempool_url = %config. mempool_url
140+ mempool_url = %config. mempool_url,
141+ host = %std:: env:: var( "DD_AGENT_HOST" ) . unwrap_or_else( |_| "unknown" . to_string( ) ) ,
142+ port = %config. tracing_otlp_port,
143+ ) ;
144+ info ! (
145+ message = "host" ,
146+ host = %std:: env:: var( "DD_AGENT_HOST" ) . unwrap_or_else( |_| "unknown" . to_string( ) )
147+ ) ;
148+ info ! (
149+ message = "port" ,
150+ port = %config. tracing_otlp_port
145151 ) ;
146152
147153 let provider: RootProvider < Optimism > = ProviderBuilder :: new ( )
You can’t perform that action at this time.
0 commit comments