Skip to content

Commit ea8df2c

Browse files
authored
Remove the deprecated const from otelhttp (#4894)
* Remove the deprecated const from otelhttp * Add changelog entry
1 parent 087fdd4 commit ea8df2c

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
1212

1313
- Add the new `go.opentelemetry.io/contrib/instrgen` package to provide auto-generated source code instrumentation. (#3068, #3108)
1414

15+
### Removed
16+
17+
- The deprecated `RequestCount` constant in `go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp` is removed. (#4894)
18+
- The deprecated `RequestContentLength` constant in `go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp` is removed. (#4894)
19+
- The deprecated `ResponseContentLength` constant in `go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp` is removed. (#4894)
20+
- The deprecated `ServerLatency` constant in `go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp` is removed. (#4894)
21+
1522
## [1.23.0/0.48.0/0.17.0/0.3.0] - 2024-02-06
1623

1724
### Added

instrumentation/net/http/otelhttp/common.go

-8
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,6 @@ const (
3131

3232
// Server HTTP metrics.
3333
const (
34-
// Deprecated: This field is unused.
35-
RequestCount = "http.server.request_count" // Incoming request count total
36-
// Deprecated: Use of this field has been migrated to serverRequestSize. It will be removed in a future version.
37-
RequestContentLength = "http.server.request_content_length" // Incoming request bytes total
38-
// Deprecated: Use of this field has been migrated to serverResponseSize. It will be removed in a future version.
39-
ResponseContentLength = "http.server.response_content_length" // Incoming response bytes total
40-
// Deprecated: Use of this field has been migrated to serverDuration. It will be removed in a future version.
41-
ServerLatency = "http.server.duration" // Incoming end to end duration, milliseconds
4234
serverRequestSize = "http.server.request.size" // Incoming request bytes total
4335
serverResponseSize = "http.server.response.size" // Incoming response bytes total
4436
serverDuration = "http.server.duration" // Incoming end to end duration, milliseconds

0 commit comments

Comments
 (0)