Skip to content

Commit 321f90f

Browse files
authored
Add http-metrics to semantic conventions (#2976)
* sem * lint
1 parent 8927ae5 commit 321f90f

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

Diff for: CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
([#2947](https://github.com/open-telemetry/opentelemetry-python/pull/2947))
1212
- `exporter-otlp-proto-http`: add user agent string
1313
([#2959](https://github.com/open-telemetry/opentelemetry-python/pull/2959))
14+
- Add http-metric instrument names to semantic conventions
15+
([#2976](https://github.com/open-telemetry/opentelemetry-python/pull/2976))
1416

1517
## [1.13.0-0.34b0](https://github.com/open-telemetry/opentelemetry-python/releases/tag/v1.13.0) - 2022-09-26
1618

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Copyright The OpenTelemetry Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# pylint: disable=too-many-lines
16+
17+
18+
class MetricInstruments:
19+
20+
HTTP_SERVER_DURATION = "http.server.duration"
21+
22+
HTTP_SERVER_REQUEST_SIZE = "http.server.request.size"
23+
24+
HTTP_SERVER_RESPONSE_SIZE = "http.server.response.size"
25+
26+
HTTP_SERVER_ACTIVE_REQUESTS = "http.server.active_requests"
27+
28+
HTTP_CLIENT_DURATION = "http.client.duration"
29+
30+
HTTP_CLIENT_REQUEST_SIZE = "http.client.request.size"
31+
32+
HTTP_CLIENT_RESPONSE_SIZE = "http.client.response.size"

0 commit comments

Comments
 (0)