chore: log tracing config (#2506)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
pull/24376/head
Andrew Lamb 2021-09-10 13:03:47 -04:00 committed by GitHub
parent 083fd06d0c
commit cfb198b653
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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)