From 0d1e77c854d9c13ea6e2e05039e6b0e4181eafeb Mon Sep 17 00:00:00 2001 From: Sam Xie Date: Fri, 17 May 2024 00:23:39 -0700 Subject: [PATCH] Fix package prefix of error in otlploghttp (#5371) --- CHANGELOG.md | 1 + exporters/otlp/otlplog/otlploghttp/config.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 908486b4c07..1d4c5e70a72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm - Fix the empty output of `go.opentelemetry.io/otel/log.Value` in `go.opentelemetry.io/otel/exporters/stdout/stdoutlog`. (#5311) - Comparison of unordered maps in `go.opentelemetry.io/otel/log.KeyValue` and `go.opentelemetry.io/otel/log.Value`. (#5306) +- Fix wrong package name of the error message when parsing endpoint URL in `go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp`. (#5371) ## [1.26.0/0.48.0/0.2.0-alpha] 2024-04-24 diff --git a/exporters/otlp/otlplog/otlploghttp/config.go b/exporters/otlp/otlplog/otlploghttp/config.go index 13c60a24dd1..383890d91d5 100644 --- a/exporters/otlp/otlplog/otlploghttp/config.go +++ b/exporters/otlp/otlplog/otlploghttp/config.go @@ -172,7 +172,7 @@ func WithEndpoint(endpoint string) Option { func WithEndpointURL(rawURL string) Option { u, err := url.Parse(rawURL) if err != nil { - global.Error(err, "otlpmetric: parse endpoint url", "url", rawURL) + global.Error(err, "otlplog: parse endpoint url", "url", rawURL) return fnOpt(func(c config) config { return c }) } return fnOpt(func(c config) config {