From 5e1e866dbbc4b1490fe4806ccc859731b47a5104 Mon Sep 17 00:00:00 2001 From: Varkeychan Jacob Date: Wed, 5 Jun 2024 00:26:36 +0530 Subject: [PATCH] log messages --- instrumentation/opentelemetry/init.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/instrumentation/opentelemetry/init.go b/instrumentation/opentelemetry/init.go index aeb1bfe..0fe73a2 100644 --- a/instrumentation/opentelemetry/init.go +++ b/instrumentation/opentelemetry/init.go @@ -169,9 +169,11 @@ func makeExporterFactory(cfg *config.AgentConfig) func() (sdktrace.SpanExporter, RootCAs: caCertPool, } opts = append(opts, otlphttp.WithTLSClientConfig(tlsCfg)) + } else { + log.Printf("error while parsing the cert file %s: %v", certFile, err) } } else { - log.Printf("error while creating tls credentials from cert path %s: %v", certFile, err) + log.Printf("error while reading the cert file %s: %v", certFile, err) } }