From 74361cded4c4410fbf73bbc44a0ab906f5faca35 Mon Sep 17 00:00:00 2001 From: Fools Date: Wed, 21 Aug 2024 15:18:18 +0100 Subject: [PATCH] make precommit --- .../otlpmetric/otlpmetricgrpc/internal/envconfig/envconfig.go | 4 ++-- .../otlpmetric/otlpmetrichttp/internal/envconfig/envconfig.go | 4 ++-- .../otlptrace/otlptracegrpc/internal/envconfig/envconfig.go | 4 ++-- .../otlptrace/otlptracehttp/internal/envconfig/envconfig.go | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/exporters/otlp/otlpmetric/otlpmetricgrpc/internal/envconfig/envconfig.go b/exporters/otlp/otlpmetric/otlpmetricgrpc/internal/envconfig/envconfig.go index aed91bb3e9f..261f5502682 100644 --- a/exporters/otlp/otlpmetric/otlpmetricgrpc/internal/envconfig/envconfig.go +++ b/exporters/otlp/otlpmetric/otlpmetricgrpc/internal/envconfig/envconfig.go @@ -167,13 +167,13 @@ func stringToHeader(value string) map[string]string { trimmedName := strings.TrimSpace(n) - // Validate the key + // Validate the key. if !isValidHeaderKey(trimmedName) { global.Error(errors.New("invalid header key"), "parse headers", "key", trimmedName) continue } - // Only decode the value + // Only decode the value. value, err := url.PathUnescape(v) if err != nil { global.Error(err, "escape header value", "value", v) diff --git a/exporters/otlp/otlpmetric/otlpmetrichttp/internal/envconfig/envconfig.go b/exporters/otlp/otlpmetric/otlpmetrichttp/internal/envconfig/envconfig.go index eb5d12c8ad9..7ac42759f6c 100644 --- a/exporters/otlp/otlpmetric/otlpmetrichttp/internal/envconfig/envconfig.go +++ b/exporters/otlp/otlpmetric/otlpmetrichttp/internal/envconfig/envconfig.go @@ -167,13 +167,13 @@ func stringToHeader(value string) map[string]string { trimmedName := strings.TrimSpace(n) - // Validate the key + // Validate the key. if !isValidHeaderKey(trimmedName) { global.Error(errors.New("invalid header key"), "parse headers", "key", trimmedName) continue } - // Only decode the value + // Only decode the value. value, err := url.PathUnescape(v) if err != nil { global.Error(err, "escape header value", "value", v) diff --git a/exporters/otlp/otlptrace/otlptracegrpc/internal/envconfig/envconfig.go b/exporters/otlp/otlptrace/otlptracegrpc/internal/envconfig/envconfig.go index fbfcad0e87a..4abf48d1f62 100644 --- a/exporters/otlp/otlptrace/otlptracegrpc/internal/envconfig/envconfig.go +++ b/exporters/otlp/otlptrace/otlptracegrpc/internal/envconfig/envconfig.go @@ -167,13 +167,13 @@ func stringToHeader(value string) map[string]string { trimmedName := strings.TrimSpace(n) - // Validate the key + // Validate the key. if !isValidHeaderKey(trimmedName) { global.Error(errors.New("invalid header key"), "parse headers", "key", trimmedName) continue } - // Only decode the value + // Only decode the value. value, err := url.PathUnescape(v) if err != nil { global.Error(err, "escape header value", "value", v) diff --git a/exporters/otlp/otlptrace/otlptracehttp/internal/envconfig/envconfig.go b/exporters/otlp/otlptrace/otlptracehttp/internal/envconfig/envconfig.go index ede155e502b..f30bb66aeda 100644 --- a/exporters/otlp/otlptrace/otlptracehttp/internal/envconfig/envconfig.go +++ b/exporters/otlp/otlptrace/otlptracehttp/internal/envconfig/envconfig.go @@ -167,13 +167,13 @@ func stringToHeader(value string) map[string]string { trimmedName := strings.TrimSpace(n) - // Validate the key + // Validate the key. if !isValidHeaderKey(trimmedName) { global.Error(errors.New("invalid header key"), "parse headers", "key", trimmedName) continue } - // Only decode the value + // Only decode the value. value, err := url.PathUnescape(v) if err != nil { global.Error(err, "escape header value", "value", v)