Skip to content

Commit

Permalink
Add http-metrics to semantic conventions (#2976)
Browse files Browse the repository at this point in the history
* sem

* lint
  • Loading branch information
lzchen authored Oct 13, 2022
1 parent 8927ae5 commit 321f90f
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
([#2947](https://github.com/open-telemetry/opentelemetry-python/pull/2947))
- `exporter-otlp-proto-http`: add user agent string
([#2959](https://github.com/open-telemetry/opentelemetry-python/pull/2959))
- Add http-metric instrument names to semantic conventions
([#2976](https://github.com/open-telemetry/opentelemetry-python/pull/2976))

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

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Copyright The OpenTelemetry Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# pylint: disable=too-many-lines


class MetricInstruments:

HTTP_SERVER_DURATION = "http.server.duration"

HTTP_SERVER_REQUEST_SIZE = "http.server.request.size"

HTTP_SERVER_RESPONSE_SIZE = "http.server.response.size"

HTTP_SERVER_ACTIVE_REQUESTS = "http.server.active_requests"

HTTP_CLIENT_DURATION = "http.client.duration"

HTTP_CLIENT_REQUEST_SIZE = "http.client.request.size"

HTTP_CLIENT_RESPONSE_SIZE = "http.client.response.size"

0 comments on commit 321f90f

Please sign in to comment.