Skip to content

Commit 60a1f4a

Browse files
committed
Updated a log statement
1 parent 6dbc6b9 commit 60a1f4a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

internal/collector/otel_collector_plugin.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,9 @@ func (oc *Collector) setExporterProxyEnvVars(ctx context.Context) {
765765
proxyURL := proxy.URL
766766
parsedProxyURL, err := url.Parse(proxyURL)
767767
if err != nil {
768-
slog.ErrorContext(ctx, "Malformed proxy URL; skipping Proxy setup", "url", proxyURL, "error", err)
768+
slog.ErrorContext(ctx, "Malformed proxy URL, unable to configure proxy for OTLP exporter",
769+
"url", proxyURL, "error", err)
770+
769771
return
770772
}
771773

internal/collector/otel_collector_plugin_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ func TestSetExporterProxyEnvVars(t *testing.T) {
846846
{
847847
name: "Test 2: Malformed proxy URL",
848848
proxy: &config.Proxy{URL: "://bad_url"},
849-
expectedLog: "Malformed proxy URL; skipping Proxy setup",
849+
expectedLog: "Malformed proxy URL, unable to configure proxy for OTLP exporter",
850850
setEnv: false,
851851
},
852852
{

0 commit comments

Comments
 (0)