opentelemetry-semantic_conventions 1.11.0 → 1.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.yardopts +2 -2
- data/CHANGELOG.md +4 -0
- data/lib/opentelemetry/semantic_conventions/resource.rb +258 -4
- data/lib/opentelemetry/semantic_conventions/trace.rb +432 -5
- data/lib/opentelemetry/semantic_conventions/version.rb +1 -1
- data/lib/opentelemetry/semantic_conventions.rb +13 -1
- data/lib/opentelemetry/semconv/aspnetcore/attributes.rb +97 -0
- data/lib/opentelemetry/semconv/aspnetcore/metrics.rb +83 -0
- data/lib/opentelemetry/semconv/aspnetcore.rb +22 -0
- data/lib/opentelemetry/semconv/client/attributes.rb +53 -0
- data/lib/opentelemetry/semconv/client.rb +21 -0
- data/lib/opentelemetry/semconv/code/attributes.rb +92 -0
- data/lib/opentelemetry/semconv/code.rb +21 -0
- data/lib/opentelemetry/semconv/db/attributes.rb +174 -0
- data/lib/opentelemetry/semconv/db/metrics.rb +36 -0
- data/lib/opentelemetry/semconv/db.rb +22 -0
- data/lib/opentelemetry/semconv/dotnet/attributes.rb +40 -0
- data/lib/opentelemetry/semconv/dotnet/metrics.rb +181 -0
- data/lib/opentelemetry/semconv/dotnet.rb +22 -0
- data/lib/opentelemetry/semconv/error/attributes.rb +61 -0
- data/lib/opentelemetry/semconv/error.rb +21 -0
- data/lib/opentelemetry/semconv/exception/attributes.rb +64 -0
- data/lib/opentelemetry/semconv/exception.rb +21 -0
- data/lib/opentelemetry/semconv/http/attributes.rb +164 -0
- data/lib/opentelemetry/semconv/http/metrics.rb +39 -0
- data/lib/opentelemetry/semconv/http.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/android/attributes.rb +58 -0
- data/lib/opentelemetry/semconv/incubating/android.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/app/attributes.rb +103 -0
- data/lib/opentelemetry/semconv/incubating/app.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/artifact/attributes.rb +117 -0
- data/lib/opentelemetry/semconv/incubating/artifact.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/aspnetcore/attributes.rb +113 -0
- data/lib/opentelemetry/semconv/incubating/aspnetcore/metrics.rb +99 -0
- data/lib/opentelemetry/semconv/incubating/aspnetcore.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/aws/attributes.rb +551 -0
- data/lib/opentelemetry/semconv/incubating/aws.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/az/attributes.rb +53 -0
- data/lib/opentelemetry/semconv/incubating/az.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/azure/attributes.rb +115 -0
- data/lib/opentelemetry/semconv/incubating/azure/metrics.rb +41 -0
- data/lib/opentelemetry/semconv/incubating/azure.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/browser/attributes.rb +77 -0
- data/lib/opentelemetry/semconv/incubating/browser.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/cassandra/attributes.rb +78 -0
- data/lib/opentelemetry/semconv/incubating/cassandra.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/cicd/attributes.rb +201 -0
- data/lib/opentelemetry/semconv/incubating/cicd/metrics.rb +61 -0
- data/lib/opentelemetry/semconv/incubating/cicd.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/client/attributes.rb +59 -0
- data/lib/opentelemetry/semconv/incubating/client.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/cloud/attributes.rb +105 -0
- data/lib/opentelemetry/semconv/incubating/cloud.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/cloudevents/attributes.rb +80 -0
- data/lib/opentelemetry/semconv/incubating/cloudevents.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/cloudfoundry/attributes.rb +190 -0
- data/lib/opentelemetry/semconv/incubating/cloudfoundry.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/code/attributes.rb +155 -0
- data/lib/opentelemetry/semconv/incubating/code.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/container/attributes.rb +197 -0
- data/lib/opentelemetry/semconv/incubating/container/metrics.rb +74 -0
- data/lib/opentelemetry/semconv/incubating/container.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/cpu/attributes.rb +50 -0
- data/lib/opentelemetry/semconv/incubating/cpu/metrics.rb +49 -0
- data/lib/opentelemetry/semconv/incubating/cpu.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/cpython/attributes.rb +42 -0
- data/lib/opentelemetry/semconv/incubating/cpython/metrics.rb +52 -0
- data/lib/opentelemetry/semconv/incubating/cpython.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/db/attributes.rb +615 -0
- data/lib/opentelemetry/semconv/incubating/db/metrics.rb +156 -0
- data/lib/opentelemetry/semconv/incubating/db.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/deployment/attributes.rb +84 -0
- data/lib/opentelemetry/semconv/incubating/deployment.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/destination/attributes.rb +54 -0
- data/lib/opentelemetry/semconv/incubating/destination.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/device/attributes.rb +88 -0
- data/lib/opentelemetry/semconv/incubating/device.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/disk/attributes.rb +40 -0
- data/lib/opentelemetry/semconv/incubating/disk.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/dns/attributes.rb +52 -0
- data/lib/opentelemetry/semconv/incubating/dns/metrics.rb +36 -0
- data/lib/opentelemetry/semconv/incubating/dns.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/dotnet/attributes.rb +44 -0
- data/lib/opentelemetry/semconv/incubating/dotnet/metrics.rb +221 -0
- data/lib/opentelemetry/semconv/incubating/dotnet.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/elasticsearch/attributes.rb +40 -0
- data/lib/opentelemetry/semconv/incubating/elasticsearch.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/enduser/attributes.rb +79 -0
- data/lib/opentelemetry/semconv/incubating/enduser.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/error/attributes.rb +81 -0
- data/lib/opentelemetry/semconv/incubating/error.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/event/attributes.rb +42 -0
- data/lib/opentelemetry/semconv/incubating/event.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/exception/attributes.rb +73 -0
- data/lib/opentelemetry/semconv/incubating/exception.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/faas/attributes.rb +200 -0
- data/lib/opentelemetry/semconv/incubating/faas/metrics.rb +76 -0
- data/lib/opentelemetry/semconv/incubating/faas.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/feature_flag/attributes.rb +159 -0
- data/lib/opentelemetry/semconv/incubating/feature_flag.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/file/attributes.rb +207 -0
- data/lib/opentelemetry/semconv/incubating/file.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/gcp/attributes.rb +159 -0
- data/lib/opentelemetry/semconv/incubating/gcp.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/gen_ai/attributes.rb +404 -0
- data/lib/opentelemetry/semconv/incubating/gen_ai/metrics.rb +56 -0
- data/lib/opentelemetry/semconv/incubating/gen_ai.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/geo/attributes.rb +91 -0
- data/lib/opentelemetry/semconv/incubating/geo.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/go/attributes.rb +41 -0
- data/lib/opentelemetry/semconv/incubating/go/metrics.rb +94 -0
- data/lib/opentelemetry/semconv/incubating/go.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/graphql/attributes.rb +62 -0
- data/lib/opentelemetry/semconv/incubating/graphql.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/heroku/attributes.rb +58 -0
- data/lib/opentelemetry/semconv/incubating/heroku.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/host/attributes.rb +172 -0
- data/lib/opentelemetry/semconv/incubating/host.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/http/attributes.rb +366 -0
- data/lib/opentelemetry/semconv/incubating/http/metrics.rb +93 -0
- data/lib/opentelemetry/semconv/incubating/http.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/hw/attributes.rb +70 -0
- data/lib/opentelemetry/semconv/incubating/hw/metrics.rb +79 -0
- data/lib/opentelemetry/semconv/incubating/hw.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/ios/attributes.rb +44 -0
- data/lib/opentelemetry/semconv/incubating/ios.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/jvm/attributes.rb +129 -0
- data/lib/opentelemetry/semconv/incubating/jvm/metrics.rb +162 -0
- data/lib/opentelemetry/semconv/incubating/jvm.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/k8s/attributes.rb +910 -0
- data/lib/opentelemetry/semconv/incubating/k8s/metrics.rb +658 -0
- data/lib/opentelemetry/semconv/incubating/k8s.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/kestrel/metrics.rb +106 -0
- data/lib/opentelemetry/semconv/incubating/kestrel.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/linux/attributes.rb +41 -0
- data/lib/opentelemetry/semconv/incubating/linux.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/log/attributes.rb +96 -0
- data/lib/opentelemetry/semconv/incubating/log.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/mainframe/attributes.rb +40 -0
- data/lib/opentelemetry/semconv/incubating/mainframe.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/message/attributes.rb +55 -0
- data/lib/opentelemetry/semconv/incubating/message.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/messaging/attributes.rb +451 -0
- data/lib/opentelemetry/semconv/incubating/messaging/metrics.rb +96 -0
- data/lib/opentelemetry/semconv/incubating/messaging.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/net/attributes.rb +175 -0
- data/lib/opentelemetry/semconv/incubating/net.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/network/attributes.rb +222 -0
- data/lib/opentelemetry/semconv/incubating/network.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/nodejs/attributes.rb +36 -0
- data/lib/opentelemetry/semconv/incubating/nodejs/metrics.rb +94 -0
- data/lib/opentelemetry/semconv/incubating/nodejs.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/oci/attributes.rb +43 -0
- data/lib/opentelemetry/semconv/incubating/oci.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/opentracing/attributes.rb +38 -0
- data/lib/opentelemetry/semconv/incubating/opentracing.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/os/attributes.rb +78 -0
- data/lib/opentelemetry/semconv/incubating/os.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/otel/attributes.rb +138 -0
- data/lib/opentelemetry/semconv/incubating/otel/metrics.rb +194 -0
- data/lib/opentelemetry/semconv/incubating/otel.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/other/attributes.rb +41 -0
- data/lib/opentelemetry/semconv/incubating/other.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/peer/attributes.rb +40 -0
- data/lib/opentelemetry/semconv/incubating/peer.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/pool/attributes.rb +41 -0
- data/lib/opentelemetry/semconv/incubating/pool.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/process/attributes.rb +367 -0
- data/lib/opentelemetry/semconv/incubating/process/metrics.rb +89 -0
- data/lib/opentelemetry/semconv/incubating/process.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/profile/attributes.rb +40 -0
- data/lib/opentelemetry/semconv/incubating/profile.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/rpc/attributes.rb +215 -0
- data/lib/opentelemetry/semconv/incubating/rpc/metrics.rb +115 -0
- data/lib/opentelemetry/semconv/incubating/rpc.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/security_rule/attributes.rb +106 -0
- data/lib/opentelemetry/semconv/incubating/security_rule.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/server/attributes.rb +61 -0
- data/lib/opentelemetry/semconv/incubating/server.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/service/attributes.rb +103 -0
- data/lib/opentelemetry/semconv/incubating/service.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/session/attributes.rb +49 -0
- data/lib/opentelemetry/semconv/incubating/session.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/signalr/attributes.rb +55 -0
- data/lib/opentelemetry/semconv/incubating/signalr/metrics.rb +49 -0
- data/lib/opentelemetry/semconv/incubating/signalr.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/source/attributes.rb +54 -0
- data/lib/opentelemetry/semconv/incubating/source.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/system/attributes.rb +162 -0
- data/lib/opentelemetry/semconv/incubating/system/metrics.rb +227 -0
- data/lib/opentelemetry/semconv/incubating/system.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/telemetry/attributes.rb +88 -0
- data/lib/opentelemetry/semconv/incubating/telemetry.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/test/attributes.rb +75 -0
- data/lib/opentelemetry/semconv/incubating/test.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/thread/attributes.rb +49 -0
- data/lib/opentelemetry/semconv/incubating/thread.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/tls/attributes.rb +293 -0
- data/lib/opentelemetry/semconv/incubating/tls.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/url/attributes.rb +225 -0
- data/lib/opentelemetry/semconv/incubating/url.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/user/attributes.rb +87 -0
- data/lib/opentelemetry/semconv/incubating/user.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/user_agent/attributes.rb +100 -0
- data/lib/opentelemetry/semconv/incubating/user_agent.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/v8js/attributes.rb +43 -0
- data/lib/opentelemetry/semconv/incubating/v8js/metrics.rb +66 -0
- data/lib/opentelemetry/semconv/incubating/v8js.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/vcs/attributes.rb +303 -0
- data/lib/opentelemetry/semconv/incubating/vcs/metrics.rb +88 -0
- data/lib/opentelemetry/semconv/incubating/vcs.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/webengine/attributes.rb +58 -0
- data/lib/opentelemetry/semconv/incubating/webengine.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/zos/attributes.rb +49 -0
- data/lib/opentelemetry/semconv/incubating/zos.rb +21 -0
- data/lib/opentelemetry/semconv/jvm/attributes.rb +91 -0
- data/lib/opentelemetry/semconv/jvm/metrics.rb +91 -0
- data/lib/opentelemetry/semconv/jvm.rb +22 -0
- data/lib/opentelemetry/semconv/kestrel/metrics.rb +88 -0
- data/lib/opentelemetry/semconv/kestrel.rb +21 -0
- data/lib/opentelemetry/semconv/network/attributes.rb +120 -0
- data/lib/opentelemetry/semconv/network.rb +21 -0
- data/lib/opentelemetry/semconv/otel/attributes.rb +61 -0
- data/lib/opentelemetry/semconv/otel.rb +21 -0
- data/lib/opentelemetry/semconv/server/attributes.rb +55 -0
- data/lib/opentelemetry/semconv/server.rb +21 -0
- data/lib/opentelemetry/semconv/service/attributes.rb +50 -0
- data/lib/opentelemetry/semconv/service.rb +21 -0
- data/lib/opentelemetry/semconv/signalr/attributes.rb +49 -0
- data/lib/opentelemetry/semconv/signalr/metrics.rb +43 -0
- data/lib/opentelemetry/semconv/signalr.rb +22 -0
- data/lib/opentelemetry/semconv/telemetry/attributes.rb +59 -0
- data/lib/opentelemetry/semconv/telemetry.rb +21 -0
- data/lib/opentelemetry/semconv/url/attributes.rb +118 -0
- data/lib/opentelemetry/semconv/url.rb +21 -0
- data/lib/opentelemetry/semconv/user_agent/attributes.rb +40 -0
- data/lib/opentelemetry/semconv/user_agent.rb +21 -0
- metadata +249 -4
@@ -0,0 +1,366 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright The OpenTelemetry Authors
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
#
|
17
|
+
# SPDX-License-Identifier: Apache-2.0
|
18
|
+
#
|
19
|
+
# This file was autogenerated. Do not edit it by hand.
|
20
|
+
|
21
|
+
module OpenTelemetry
|
22
|
+
module SemConv
|
23
|
+
module Incubating
|
24
|
+
module HTTP
|
25
|
+
# @!group Attribute Names
|
26
|
+
|
27
|
+
# Deprecated, use `client.address` instead.
|
28
|
+
#
|
29
|
+
# @note Stability Level: development
|
30
|
+
#
|
31
|
+
# @example Sample Values
|
32
|
+
# 83.164.160.102
|
33
|
+
#
|
34
|
+
# @deprecated {"note": "Replaced by `client.address`.", "reason": "renamed", "renamed_to": "client.address"}
|
35
|
+
HTTP_CLIENT_IP = 'http.client_ip'
|
36
|
+
|
37
|
+
# State of the HTTP connection in the HTTP connection pool.
|
38
|
+
#
|
39
|
+
# @note Stability Level: development
|
40
|
+
#
|
41
|
+
# @example Sample Values
|
42
|
+
# active
|
43
|
+
# idle
|
44
|
+
#
|
45
|
+
HTTP_CONNECTION_STATE = 'http.connection.state'
|
46
|
+
|
47
|
+
# Deprecated, use `network.protocol.name` instead.
|
48
|
+
#
|
49
|
+
# @note Stability Level: development
|
50
|
+
# @deprecated {"note": "Replaced by `network.protocol.name`.", "reason": "renamed", "renamed_to": "network.protocol.name"}
|
51
|
+
HTTP_FLAVOR = 'http.flavor'
|
52
|
+
|
53
|
+
# Deprecated, use one of `server.address`, `client.address` or `http.request.header.host` instead, depending on the usage.
|
54
|
+
#
|
55
|
+
# @note Stability Level: development
|
56
|
+
#
|
57
|
+
# @example Sample Values
|
58
|
+
# www.example.org
|
59
|
+
#
|
60
|
+
# @deprecated {"note": "Replaced by one of `server.address`, `client.address` or `http.request.header.host`, depending on the usage.\n", "reason": "uncategorized"}
|
61
|
+
HTTP_HOST = 'http.host'
|
62
|
+
|
63
|
+
# Deprecated, use `http.request.method` instead.
|
64
|
+
#
|
65
|
+
# @note Stability Level: development
|
66
|
+
#
|
67
|
+
# @example Sample Values
|
68
|
+
# GET
|
69
|
+
# POST
|
70
|
+
# HEAD
|
71
|
+
#
|
72
|
+
# @deprecated {"note": "Replaced by `http.request.method`.", "reason": "renamed", "renamed_to": "http.request.method"}
|
73
|
+
HTTP_METHOD = 'http.method'
|
74
|
+
|
75
|
+
# The size of the request payload body in bytes. This is the number of bytes transferred excluding headers and is often, but not always, present as the [Content-Length](https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length) header. For requests using transport encoding, this should be the compressed size.
|
76
|
+
#
|
77
|
+
# @note Stability Level: development
|
78
|
+
#
|
79
|
+
# @example Sample Values
|
80
|
+
# 3495
|
81
|
+
#
|
82
|
+
HTTP_REQUEST_BODY_SIZE = 'http.request.body.size'
|
83
|
+
|
84
|
+
# Must be called with a key for the full attribute name. See notes below about the expectations
|
85
|
+
# for the state of the key.
|
86
|
+
#
|
87
|
+
# @example Usage
|
88
|
+
# HTTP_REQUEST_HEADER_LAMBDA.call('some-cool-key') #=> 'http.request.header.some-cool-key'
|
89
|
+
#
|
90
|
+
# HTTP request headers, `<key>` being the normalized HTTP Header name (lowercase), the value being the header values.
|
91
|
+
#
|
92
|
+
# Instrumentations SHOULD require an explicit configuration of which headers are to be captured.
|
93
|
+
# Including all request headers can be a security risk - explicit configuration helps avoid leaking sensitive information.
|
94
|
+
#
|
95
|
+
# The `User-Agent` header is already captured in the `user_agent.original` attribute.
|
96
|
+
# Users MAY explicitly configure instrumentations to capture them even though it is not recommended.
|
97
|
+
#
|
98
|
+
# The attribute value MUST consist of either multiple header values as an array of strings
|
99
|
+
# or a single-item array containing a possibly comma-concatenated string, depending on the way
|
100
|
+
# the HTTP library provides access to headers.
|
101
|
+
#
|
102
|
+
# Examples:
|
103
|
+
#
|
104
|
+
# - A header `Content-Type: application/json` SHOULD be recorded as the `http.request.header.content-type`
|
105
|
+
# attribute with value `["application/json"]`.
|
106
|
+
# - A header `X-Forwarded-For: 1.2.3.4, 1.2.3.5` SHOULD be recorded as the `http.request.header.x-forwarded-for`
|
107
|
+
# attribute with value `["1.2.3.4", "1.2.3.5"]` or `["1.2.3.4, 1.2.3.5"]` depending on the HTTP library.
|
108
|
+
#
|
109
|
+
# @note Stability Level: stable
|
110
|
+
#
|
111
|
+
# @example Sample Values
|
112
|
+
# ["application/json"]
|
113
|
+
# ["1.2.3.4", "1.2.3.5"]
|
114
|
+
#
|
115
|
+
#
|
116
|
+
# @deprecated Now available in the stable namespace at {OpenTelemetry::SemConv::HTTP::HTTP_REQUEST_HEADER_LAMBDA}.
|
117
|
+
HTTP_REQUEST_HEADER_LAMBDA = ->(key) { "http.request.header.#{key}" }
|
118
|
+
|
119
|
+
# HTTP request method.
|
120
|
+
#
|
121
|
+
# HTTP request method value SHOULD be "known" to the instrumentation.
|
122
|
+
# By default, this convention defines "known" methods as the ones listed in [RFC9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-methods)
|
123
|
+
# and the PATCH method defined in [RFC5789](https://www.rfc-editor.org/rfc/rfc5789.html).
|
124
|
+
#
|
125
|
+
# If the HTTP request method is not known to instrumentation, it MUST set the `http.request.method` attribute to `_OTHER`.
|
126
|
+
#
|
127
|
+
# If the HTTP instrumentation could end up converting valid HTTP request methods to `_OTHER`, then it MUST provide a way to override
|
128
|
+
# the list of known HTTP methods. If this override is done via environment variable, then the environment variable MUST be named
|
129
|
+
# OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods
|
130
|
+
# (this list MUST be a full override of the default known method, it is not a list of known methods in addition to the defaults).
|
131
|
+
#
|
132
|
+
# HTTP method names are case-sensitive and `http.request.method` attribute value MUST match a known HTTP method name exactly.
|
133
|
+
# Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, SHOULD populate a canonical equivalent.
|
134
|
+
# Tracing instrumentations that do so, MUST also set `http.request.method_original` to the original value.
|
135
|
+
#
|
136
|
+
# @note Stability Level: stable
|
137
|
+
#
|
138
|
+
# @example Sample Values
|
139
|
+
# GET
|
140
|
+
# POST
|
141
|
+
# HEAD
|
142
|
+
#
|
143
|
+
#
|
144
|
+
# @deprecated Now available in the stable namespace at {OpenTelemetry::SemConv::HTTP::HTTP_REQUEST_METHOD}.
|
145
|
+
HTTP_REQUEST_METHOD = 'http.request.method'
|
146
|
+
|
147
|
+
# Original HTTP method sent by the client in the request line.
|
148
|
+
#
|
149
|
+
# @note Stability Level: stable
|
150
|
+
#
|
151
|
+
# @example Sample Values
|
152
|
+
# GeT
|
153
|
+
# ACL
|
154
|
+
# foo
|
155
|
+
#
|
156
|
+
#
|
157
|
+
# @deprecated Now available in the stable namespace at {OpenTelemetry::SemConv::HTTP::HTTP_REQUEST_METHOD_ORIGINAL}.
|
158
|
+
HTTP_REQUEST_METHOD_ORIGINAL = 'http.request.method_original'
|
159
|
+
|
160
|
+
# The ordinal number of request resending attempt (for any reason, including redirects).
|
161
|
+
#
|
162
|
+
# The resend count SHOULD be updated each time an HTTP request gets resent by the client, regardless of what was the cause of the resending (e.g. redirection, authorization failure, 503 Server Unavailable, network issues, or any other).
|
163
|
+
#
|
164
|
+
# @note Stability Level: stable
|
165
|
+
#
|
166
|
+
# @example Sample Values
|
167
|
+
# 3
|
168
|
+
#
|
169
|
+
#
|
170
|
+
# @deprecated Now available in the stable namespace at {OpenTelemetry::SemConv::HTTP::HTTP_REQUEST_RESEND_COUNT}.
|
171
|
+
HTTP_REQUEST_RESEND_COUNT = 'http.request.resend_count'
|
172
|
+
|
173
|
+
# The total size of the request in bytes. This should be the total number of bytes sent over the wire, including the request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers, and request body if any.
|
174
|
+
#
|
175
|
+
# @note Stability Level: development
|
176
|
+
#
|
177
|
+
# @example Sample Values
|
178
|
+
# 1437
|
179
|
+
#
|
180
|
+
HTTP_REQUEST_SIZE = 'http.request.size'
|
181
|
+
|
182
|
+
# Deprecated, use `http.request.header.content-length` instead.
|
183
|
+
#
|
184
|
+
# @note Stability Level: development
|
185
|
+
#
|
186
|
+
# @example Sample Values
|
187
|
+
# 3495
|
188
|
+
#
|
189
|
+
# @deprecated {"note": "Replaced by `http.request.header.content-length`.", "reason": "uncategorized"}
|
190
|
+
HTTP_REQUEST_CONTENT_LENGTH = 'http.request_content_length'
|
191
|
+
|
192
|
+
# Deprecated, use `http.request.body.size` instead.
|
193
|
+
#
|
194
|
+
# @note Stability Level: development
|
195
|
+
#
|
196
|
+
# @example Sample Values
|
197
|
+
# 5493
|
198
|
+
#
|
199
|
+
# @deprecated {"note": "Replaced by `http.request.body.size`.", "reason": "renamed", "renamed_to": "http.request.body.size"}
|
200
|
+
HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED = 'http.request_content_length_uncompressed'
|
201
|
+
|
202
|
+
# The size of the response payload body in bytes. This is the number of bytes transferred excluding headers and is often, but not always, present as the [Content-Length](https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length) header. For requests using transport encoding, this should be the compressed size.
|
203
|
+
#
|
204
|
+
# @note Stability Level: development
|
205
|
+
#
|
206
|
+
# @example Sample Values
|
207
|
+
# 3495
|
208
|
+
#
|
209
|
+
HTTP_RESPONSE_BODY_SIZE = 'http.response.body.size'
|
210
|
+
|
211
|
+
# Must be called with a key for the full attribute name. See notes below about the expectations
|
212
|
+
# for the state of the key.
|
213
|
+
#
|
214
|
+
# @example Usage
|
215
|
+
# HTTP_RESPONSE_HEADER_LAMBDA.call('some-cool-key') #=> 'http.response.header.some-cool-key'
|
216
|
+
#
|
217
|
+
# HTTP response headers, `<key>` being the normalized HTTP Header name (lowercase), the value being the header values.
|
218
|
+
#
|
219
|
+
# Instrumentations SHOULD require an explicit configuration of which headers are to be captured.
|
220
|
+
# Including all response headers can be a security risk - explicit configuration helps avoid leaking sensitive information.
|
221
|
+
#
|
222
|
+
# Users MAY explicitly configure instrumentations to capture them even though it is not recommended.
|
223
|
+
#
|
224
|
+
# The attribute value MUST consist of either multiple header values as an array of strings
|
225
|
+
# or a single-item array containing a possibly comma-concatenated string, depending on the way
|
226
|
+
# the HTTP library provides access to headers.
|
227
|
+
#
|
228
|
+
# Examples:
|
229
|
+
#
|
230
|
+
# - A header `Content-Type: application/json` header SHOULD be recorded as the `http.request.response.content-type`
|
231
|
+
# attribute with value `["application/json"]`.
|
232
|
+
# - A header `My-custom-header: abc, def` header SHOULD be recorded as the `http.response.header.my-custom-header`
|
233
|
+
# attribute with value `["abc", "def"]` or `["abc, def"]` depending on the HTTP library.
|
234
|
+
#
|
235
|
+
# @note Stability Level: stable
|
236
|
+
#
|
237
|
+
# @example Sample Values
|
238
|
+
# ["application/json"]
|
239
|
+
# ["abc", "def"]
|
240
|
+
#
|
241
|
+
#
|
242
|
+
# @deprecated Now available in the stable namespace at {OpenTelemetry::SemConv::HTTP::HTTP_RESPONSE_HEADER_LAMBDA}.
|
243
|
+
HTTP_RESPONSE_HEADER_LAMBDA = ->(key) { "http.response.header.#{key}" }
|
244
|
+
|
245
|
+
# The total size of the response in bytes. This should be the total number of bytes sent over the wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers, and response body and trailers if any.
|
246
|
+
#
|
247
|
+
# @note Stability Level: development
|
248
|
+
#
|
249
|
+
# @example Sample Values
|
250
|
+
# 1437
|
251
|
+
#
|
252
|
+
HTTP_RESPONSE_SIZE = 'http.response.size'
|
253
|
+
|
254
|
+
# [HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6).
|
255
|
+
#
|
256
|
+
# @note Stability Level: stable
|
257
|
+
#
|
258
|
+
# @example Sample Values
|
259
|
+
# 200
|
260
|
+
#
|
261
|
+
#
|
262
|
+
# @deprecated Now available in the stable namespace at {OpenTelemetry::SemConv::HTTP::HTTP_RESPONSE_STATUS_CODE}.
|
263
|
+
HTTP_RESPONSE_STATUS_CODE = 'http.response.status_code'
|
264
|
+
|
265
|
+
# Deprecated, use `http.response.header.content-length` instead.
|
266
|
+
#
|
267
|
+
# @note Stability Level: development
|
268
|
+
#
|
269
|
+
# @example Sample Values
|
270
|
+
# 3495
|
271
|
+
#
|
272
|
+
# @deprecated {"note": "Replaced by `http.response.header.content-length`.", "reason": "uncategorized"}
|
273
|
+
HTTP_RESPONSE_CONTENT_LENGTH = 'http.response_content_length'
|
274
|
+
|
275
|
+
# Deprecated, use `http.response.body.size` instead.
|
276
|
+
#
|
277
|
+
# @note Stability Level: development
|
278
|
+
#
|
279
|
+
# @example Sample Values
|
280
|
+
# 5493
|
281
|
+
#
|
282
|
+
# @deprecated {"note": "Replaced by `http.response.body.size`.", "reason": "renamed", "renamed_to": "http.response.body.size"}
|
283
|
+
HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED = 'http.response_content_length_uncompressed'
|
284
|
+
|
285
|
+
# The matched route, that is, the path template in the format used by the respective server framework.
|
286
|
+
#
|
287
|
+
# MUST NOT be populated when this is not supported by the HTTP server framework as the route attribute should have low-cardinality and the URI path can NOT substitute it.
|
288
|
+
# SHOULD include the [application root](/docs/http/http-spans.md#http-server-definitions) if there is one.
|
289
|
+
#
|
290
|
+
# @note Stability Level: stable
|
291
|
+
#
|
292
|
+
# @example Sample Values
|
293
|
+
# /users/:userID?
|
294
|
+
# {controller}/{action}/{id?}
|
295
|
+
#
|
296
|
+
#
|
297
|
+
# @deprecated Now available in the stable namespace at {OpenTelemetry::SemConv::HTTP::HTTP_ROUTE}.
|
298
|
+
HTTP_ROUTE = 'http.route'
|
299
|
+
|
300
|
+
# Deprecated, use `url.scheme` instead.
|
301
|
+
#
|
302
|
+
# @note Stability Level: development
|
303
|
+
#
|
304
|
+
# @example Sample Values
|
305
|
+
# http
|
306
|
+
# https
|
307
|
+
#
|
308
|
+
# @deprecated {"note": "Replaced by `url.scheme`.", "reason": "renamed", "renamed_to": "url.scheme"}
|
309
|
+
HTTP_SCHEME = 'http.scheme'
|
310
|
+
|
311
|
+
# Deprecated, use `server.address` instead.
|
312
|
+
#
|
313
|
+
# @note Stability Level: development
|
314
|
+
#
|
315
|
+
# @example Sample Values
|
316
|
+
# example.com
|
317
|
+
#
|
318
|
+
# @deprecated {"note": "Replaced by `server.address`.", "reason": "renamed", "renamed_to": "server.address"}
|
319
|
+
HTTP_SERVER_NAME = 'http.server_name'
|
320
|
+
|
321
|
+
# Deprecated, use `http.response.status_code` instead.
|
322
|
+
#
|
323
|
+
# @note Stability Level: development
|
324
|
+
#
|
325
|
+
# @example Sample Values
|
326
|
+
# 200
|
327
|
+
#
|
328
|
+
# @deprecated {"note": "Replaced by `http.response.status_code`.", "reason": "renamed", "renamed_to": "http.response.status_code"}
|
329
|
+
HTTP_STATUS_CODE = 'http.status_code'
|
330
|
+
|
331
|
+
# Deprecated, use `url.path` and `url.query` instead.
|
332
|
+
#
|
333
|
+
# @note Stability Level: development
|
334
|
+
#
|
335
|
+
# @example Sample Values
|
336
|
+
# /search?q=OpenTelemetry#SemConv
|
337
|
+
#
|
338
|
+
# @deprecated {"note": "Split to `url.path` and `url.query`.", "reason": "obsoleted"}
|
339
|
+
HTTP_TARGET = 'http.target'
|
340
|
+
|
341
|
+
# Deprecated, use `url.full` instead.
|
342
|
+
#
|
343
|
+
# @note Stability Level: development
|
344
|
+
#
|
345
|
+
# @example Sample Values
|
346
|
+
# https://www.foo.bar/search?q=OpenTelemetry#SemConv
|
347
|
+
#
|
348
|
+
# @deprecated {"note": "Replaced by `url.full`.", "reason": "renamed", "renamed_to": "url.full"}
|
349
|
+
HTTP_URL = 'http.url'
|
350
|
+
|
351
|
+
# Deprecated, use `user_agent.original` instead.
|
352
|
+
#
|
353
|
+
# @note Stability Level: development
|
354
|
+
#
|
355
|
+
# @example Sample Values
|
356
|
+
# CERN-LineMode/2.15 libwww/2.17b3
|
357
|
+
# Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Mobile/15E148 Safari/604.1
|
358
|
+
#
|
359
|
+
# @deprecated {"note": "Replaced by `user_agent.original`.", "reason": "renamed", "renamed_to": "user_agent.original"}
|
360
|
+
HTTP_USER_AGENT = 'http.user_agent'
|
361
|
+
|
362
|
+
# @!endgroup
|
363
|
+
end
|
364
|
+
end
|
365
|
+
end
|
366
|
+
end
|
@@ -0,0 +1,93 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright The OpenTelemetry Authors
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
#
|
17
|
+
# SPDX-License-Identifier: Apache-2.0
|
18
|
+
#
|
19
|
+
# This file was autogenerated. Do not edit it by hand.
|
20
|
+
|
21
|
+
module OpenTelemetry
|
22
|
+
module SemConv
|
23
|
+
module Incubating
|
24
|
+
module HTTP
|
25
|
+
# @!group Metrics Names
|
26
|
+
|
27
|
+
# Number of active HTTP requests.
|
28
|
+
#
|
29
|
+
# @note Stability Level: development
|
30
|
+
HTTP_CLIENT_ACTIVE_REQUESTS = 'http.client.active_requests'
|
31
|
+
|
32
|
+
# The duration of the successfully established outbound HTTP connections.
|
33
|
+
#
|
34
|
+
# @note Stability Level: development
|
35
|
+
HTTP_CLIENT_CONNECTION_DURATION = 'http.client.connection.duration'
|
36
|
+
|
37
|
+
# Number of outbound HTTP connections that are currently active or idle on the client.
|
38
|
+
#
|
39
|
+
# @note Stability Level: development
|
40
|
+
HTTP_CLIENT_OPEN_CONNECTIONS = 'http.client.open_connections'
|
41
|
+
|
42
|
+
# Size of HTTP client request bodies.
|
43
|
+
#
|
44
|
+
# The size of the request payload body in bytes. This is the number of bytes transferred excluding headers and is often, but not always, present as the [Content-Length](https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length) header. For requests using transport encoding, this should be the compressed size.
|
45
|
+
#
|
46
|
+
# @note Stability Level: development
|
47
|
+
HTTP_CLIENT_REQUEST_BODY_SIZE = 'http.client.request.body.size'
|
48
|
+
|
49
|
+
# Duration of HTTP client requests.
|
50
|
+
#
|
51
|
+
# @note Stability Level: stable
|
52
|
+
#
|
53
|
+
# @deprecated Now available in the stable namespace at {OpenTelemetry::SemConv::HTTP::HTTP_CLIENT_REQUEST_DURATION}.
|
54
|
+
HTTP_CLIENT_REQUEST_DURATION = 'http.client.request.duration'
|
55
|
+
|
56
|
+
# Size of HTTP client response bodies.
|
57
|
+
#
|
58
|
+
# The size of the response payload body in bytes. This is the number of bytes transferred excluding headers and is often, but not always, present as the [Content-Length](https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length) header. For requests using transport encoding, this should be the compressed size.
|
59
|
+
#
|
60
|
+
# @note Stability Level: development
|
61
|
+
HTTP_CLIENT_RESPONSE_BODY_SIZE = 'http.client.response.body.size'
|
62
|
+
|
63
|
+
# Number of active HTTP server requests.
|
64
|
+
#
|
65
|
+
# @note Stability Level: development
|
66
|
+
HTTP_SERVER_ACTIVE_REQUESTS = 'http.server.active_requests'
|
67
|
+
|
68
|
+
# Size of HTTP server request bodies.
|
69
|
+
#
|
70
|
+
# The size of the request payload body in bytes. This is the number of bytes transferred excluding headers and is often, but not always, present as the [Content-Length](https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length) header. For requests using transport encoding, this should be the compressed size.
|
71
|
+
#
|
72
|
+
# @note Stability Level: development
|
73
|
+
HTTP_SERVER_REQUEST_BODY_SIZE = 'http.server.request.body.size'
|
74
|
+
|
75
|
+
# Duration of HTTP server requests.
|
76
|
+
#
|
77
|
+
# @note Stability Level: stable
|
78
|
+
#
|
79
|
+
# @deprecated Now available in the stable namespace at {OpenTelemetry::SemConv::HTTP::HTTP_SERVER_REQUEST_DURATION}.
|
80
|
+
HTTP_SERVER_REQUEST_DURATION = 'http.server.request.duration'
|
81
|
+
|
82
|
+
# Size of HTTP server response bodies.
|
83
|
+
#
|
84
|
+
# The size of the response payload body in bytes. This is the number of bytes transferred excluding headers and is often, but not always, present as the [Content-Length](https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length) header. For requests using transport encoding, this should be the compressed size.
|
85
|
+
#
|
86
|
+
# @note Stability Level: development
|
87
|
+
HTTP_SERVER_RESPONSE_BODY_SIZE = 'http.server.response.body.size'
|
88
|
+
|
89
|
+
# @!endgroup
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright The OpenTelemetry Authors
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
#
|
17
|
+
# SPDX-License-Identifier: Apache-2.0
|
18
|
+
|
19
|
+
# This file was autogenerated. Do not edit it by hand.
|
20
|
+
|
21
|
+
require_relative 'http/attributes'
|
22
|
+
require_relative 'http/metrics'
|
@@ -0,0 +1,70 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright The OpenTelemetry Authors
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
#
|
17
|
+
# SPDX-License-Identifier: Apache-2.0
|
18
|
+
#
|
19
|
+
# This file was autogenerated. Do not edit it by hand.
|
20
|
+
|
21
|
+
module OpenTelemetry
|
22
|
+
module SemConv
|
23
|
+
module Incubating
|
24
|
+
module HW
|
25
|
+
# @!group Attribute Names
|
26
|
+
|
27
|
+
# An identifier for the hardware component, unique within the monitored host
|
28
|
+
#
|
29
|
+
# @note Stability Level: development
|
30
|
+
#
|
31
|
+
# @example Sample Values
|
32
|
+
# win32battery_battery_testsysa33_1
|
33
|
+
#
|
34
|
+
HW_ID = 'hw.id'
|
35
|
+
|
36
|
+
# An easily-recognizable name for the hardware component
|
37
|
+
#
|
38
|
+
# @note Stability Level: development
|
39
|
+
#
|
40
|
+
# @example Sample Values
|
41
|
+
# eth0
|
42
|
+
#
|
43
|
+
HW_NAME = 'hw.name'
|
44
|
+
|
45
|
+
# Unique identifier of the parent component (typically the `hw.id` attribute of the enclosure, or disk controller)
|
46
|
+
#
|
47
|
+
# @note Stability Level: development
|
48
|
+
#
|
49
|
+
# @example Sample Values
|
50
|
+
# dellStorage_perc_0
|
51
|
+
#
|
52
|
+
HW_PARENT = 'hw.parent'
|
53
|
+
|
54
|
+
# The current state of the component
|
55
|
+
#
|
56
|
+
# @note Stability Level: development
|
57
|
+
HW_STATE = 'hw.state'
|
58
|
+
|
59
|
+
# Type of the component
|
60
|
+
#
|
61
|
+
# Describes the category of the hardware component for which `hw.state` is being reported. For example, `hw.type=temperature` along with `hw.state=degraded` would indicate that the temperature of the hardware component has been reported as `degraded`.
|
62
|
+
#
|
63
|
+
# @note Stability Level: development
|
64
|
+
HW_TYPE = 'hw.type'
|
65
|
+
|
66
|
+
# @!endgroup
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
@@ -0,0 +1,79 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright The OpenTelemetry Authors
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
#
|
17
|
+
# SPDX-License-Identifier: Apache-2.0
|
18
|
+
#
|
19
|
+
# This file was autogenerated. Do not edit it by hand.
|
20
|
+
|
21
|
+
module OpenTelemetry
|
22
|
+
module SemConv
|
23
|
+
module Incubating
|
24
|
+
module HW
|
25
|
+
# @!group Metrics Names
|
26
|
+
|
27
|
+
# Energy consumed by the component
|
28
|
+
#
|
29
|
+
# @note Stability Level: development
|
30
|
+
HW_ENERGY = 'hw.energy'
|
31
|
+
|
32
|
+
# Number of errors encountered by the component
|
33
|
+
#
|
34
|
+
# @note Stability Level: development
|
35
|
+
HW_ERRORS = 'hw.errors'
|
36
|
+
|
37
|
+
# Ambient (external) temperature of the physical host
|
38
|
+
#
|
39
|
+
# @note Stability Level: development
|
40
|
+
HW_HOST_AMBIENT_TEMPERATURE = 'hw.host.ambient_temperature'
|
41
|
+
|
42
|
+
# Total energy consumed by the entire physical host, in joules
|
43
|
+
#
|
44
|
+
# The overall energy usage of a host MUST be reported using the specific `hw.host.energy` and `hw.host.power` metrics **only**, instead of the generic `hw.energy` and `hw.power` described in the previous section, to prevent summing up overlapping values.
|
45
|
+
#
|
46
|
+
# @note Stability Level: development
|
47
|
+
HW_HOST_ENERGY = 'hw.host.energy'
|
48
|
+
|
49
|
+
# By how many degrees Celsius the temperature of the physical host can be increased, before reaching a warning threshold on one of the internal sensors
|
50
|
+
#
|
51
|
+
# @note Stability Level: development
|
52
|
+
HW_HOST_HEATING_MARGIN = 'hw.host.heating_margin'
|
53
|
+
|
54
|
+
# Instantaneous power consumed by the entire physical host in Watts (`hw.host.energy` is preferred)
|
55
|
+
#
|
56
|
+
# The overall energy usage of a host MUST be reported using the specific `hw.host.energy` and `hw.host.power` metrics **only**, instead of the generic `hw.energy` and `hw.power` described in the previous section, to prevent summing up overlapping values.
|
57
|
+
#
|
58
|
+
# @note Stability Level: development
|
59
|
+
HW_HOST_POWER = 'hw.host.power'
|
60
|
+
|
61
|
+
# Instantaneous power consumed by the component
|
62
|
+
#
|
63
|
+
# It is recommended to report `hw.energy` instead of `hw.power` when possible.
|
64
|
+
#
|
65
|
+
# @note Stability Level: development
|
66
|
+
HW_POWER = 'hw.power'
|
67
|
+
|
68
|
+
# Operational status: `1` (true) or `0` (false) for each of the possible states
|
69
|
+
#
|
70
|
+
# `hw.status` is currently specified as an *UpDownCounter* but would ideally be represented using a [*StateSet* as defined in OpenMetrics](https://github.com/prometheus/OpenMetrics/blob/v1.0.0/specification/OpenMetrics.md#stateset). This semantic convention will be updated once *StateSet* is specified in OpenTelemetry. This planned change is not expected to have any consequence on the way users query their timeseries backend to retrieve the values of `hw.status` over time.
|
71
|
+
#
|
72
|
+
# @note Stability Level: development
|
73
|
+
HW_STATUS = 'hw.status'
|
74
|
+
|
75
|
+
# @!endgroup
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright The OpenTelemetry Authors
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
#
|
17
|
+
# SPDX-License-Identifier: Apache-2.0
|
18
|
+
|
19
|
+
# This file was autogenerated. Do not edit it by hand.
|
20
|
+
|
21
|
+
require_relative 'hw/attributes'
|
22
|
+
require_relative 'hw/metrics'
|