diff --git a/CHANGELOG.md b/CHANGELOG.md index bfb9ac89c..e83ff2ab7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -48,6 +48,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm - The prometheus exporter now exports non-monotonic counters (i.e. `UpDownCounter`s) as gauges. (#1210) - Correct the `Span.End` method documentation in the `otel` API to state updates are not allowed on a span after it has ended. (#1310) - Updated span collection limits for attribute, event and link counts to 1000 (#1318) +- Renamed `semconv.HTTPUrlKey` to `semconv.HTTPURLKey`. (#1338) ### Removed diff --git a/semconv/http.go b/semconv/http.go index bbb51d4c3..50b0f696e 100644 --- a/semconv/http.go +++ b/semconv/http.go @@ -140,7 +140,7 @@ func HTTPClientAttributesFromHTTPRequest(request *http.Request) []label.KeyValue attrs = append(attrs, HTTPMethodKey.String(http.MethodGet)) } - attrs = append(attrs, HTTPUrlKey.String(request.URL.String())) + attrs = append(attrs, HTTPURLKey.String(request.URL.String())) return append(attrs, httpCommonAttributesFromHTTPRequest(request)...) } diff --git a/semconv/trace.go b/semconv/trace.go index 942ea7a6d..5f780943c 100644 --- a/semconv/trace.go +++ b/semconv/trace.go @@ -80,7 +80,7 @@ const ( // Full HTTP request URL in the form: // scheme://host[:port]/path?query[#fragment]. - HTTPUrlKey = label.Key("http.url") + HTTPURLKey = label.Key("http.url") // The full request target as passed in a HTTP request line or // equivalent, e.g. "/path/12314/?q=ddds#123".