Skip to content

Commit e1fe885

Browse files
committed
change msg
1 parent 1c50af6 commit e1fe885

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

crates/common/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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()),

crates/ingress-rpc/src/main.rs

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)