chore: log tracing config (#2506)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>pull/24376/head
parent
083fd06d0c
commit
cfb198b653
|
@ -110,12 +110,17 @@ pub type Result<T, E = Error> = std::result::Result<T, E>;
|
|||
|
||||
#[cfg(feature = "jaeger")]
|
||||
fn jaeger_exporter(config: &TracingConfig) -> Result<Arc<dyn TraceCollector>> {
|
||||
use observability_deps::tracing::info;
|
||||
|
||||
let agent_endpoint = format!(
|
||||
"{}:{}",
|
||||
config.traces_exporter_jaeger_agent_host.trim(),
|
||||
config.traces_exporter_jaeger_agent_port
|
||||
);
|
||||
|
||||
let service_name = &config.traces_exporter_jaeger_service_name;
|
||||
info!(%agent_endpoint, %service_name, "Creating jaeger tracing exporter");
|
||||
|
||||
let exporter = opentelemetry_jaeger::new_pipeline()
|
||||
.with_agent_endpoint(agent_endpoint)
|
||||
.with_service_name(&config.traces_exporter_jaeger_service_name)
|
||||
|
|
Loading…
Reference in New Issue