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,73 @@
|
|
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 EXCEPTION
|
25
|
+
# @!group Attribute Names
|
26
|
+
|
27
|
+
# Indicates that the exception is escaping the scope of the span.
|
28
|
+
#
|
29
|
+
# @note Stability Level: stable
|
30
|
+
# @deprecated {"note": "It's no longer recommended to record exceptions that are handled and do not escape the scope of a span.\n", "reason": "obsoleted"}
|
31
|
+
EXCEPTION_ESCAPED = 'exception.escaped'
|
32
|
+
|
33
|
+
# The exception message.
|
34
|
+
#
|
35
|
+
# @note Stability Level: stable
|
36
|
+
#
|
37
|
+
# @example Sample Values
|
38
|
+
# Division by zero
|
39
|
+
# Can't convert 'int' object to str implicitly
|
40
|
+
#
|
41
|
+
#
|
42
|
+
# @deprecated Now available in the stable namespace at {OpenTelemetry::SemConv::EXCEPTION::EXCEPTION_MESSAGE}.
|
43
|
+
EXCEPTION_MESSAGE = 'exception.message'
|
44
|
+
|
45
|
+
# A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG.
|
46
|
+
#
|
47
|
+
# @note Stability Level: stable
|
48
|
+
#
|
49
|
+
# @example Sample Values
|
50
|
+
# Exception in thread "main" java.lang.RuntimeException: Test exception\n at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at com.example.GenerateTrace.main(GenerateTrace.java:5)
|
51
|
+
|
52
|
+
#
|
53
|
+
#
|
54
|
+
# @deprecated Now available in the stable namespace at {OpenTelemetry::SemConv::EXCEPTION::EXCEPTION_STACKTRACE}.
|
55
|
+
EXCEPTION_STACKTRACE = 'exception.stacktrace'
|
56
|
+
|
57
|
+
# The type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it.
|
58
|
+
#
|
59
|
+
# @note Stability Level: stable
|
60
|
+
#
|
61
|
+
# @example Sample Values
|
62
|
+
# java.net.ConnectException
|
63
|
+
# OSError
|
64
|
+
#
|
65
|
+
#
|
66
|
+
# @deprecated Now available in the stable namespace at {OpenTelemetry::SemConv::EXCEPTION::EXCEPTION_TYPE}.
|
67
|
+
EXCEPTION_TYPE = 'exception.type'
|
68
|
+
|
69
|
+
# @!endgroup
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
@@ -0,0 +1,21 @@
|
|
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 'exception/attributes'
|
@@ -0,0 +1,200 @@
|
|
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 FAAS
|
25
|
+
# @!group Attribute Names
|
26
|
+
|
27
|
+
# A boolean that is true if the serverless function is executed for the first time (aka cold-start).
|
28
|
+
#
|
29
|
+
# @note Stability Level: development
|
30
|
+
FAAS_COLDSTART = 'faas.coldstart'
|
31
|
+
|
32
|
+
# A string containing the schedule period as [Cron Expression](https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm).
|
33
|
+
#
|
34
|
+
# @note Stability Level: development
|
35
|
+
#
|
36
|
+
# @example Sample Values
|
37
|
+
# 0/5 * * * ? *
|
38
|
+
#
|
39
|
+
FAAS_CRON = 'faas.cron'
|
40
|
+
|
41
|
+
# The name of the source on which the triggering operation was performed. For example, in Cloud Storage or S3 corresponds to the bucket name, and in Cosmos DB to the database name.
|
42
|
+
#
|
43
|
+
# @note Stability Level: development
|
44
|
+
#
|
45
|
+
# @example Sample Values
|
46
|
+
# myBucketName
|
47
|
+
# myDbName
|
48
|
+
#
|
49
|
+
FAAS_DOCUMENT_COLLECTION = 'faas.document.collection'
|
50
|
+
|
51
|
+
# The document name/table subjected to the operation. For example, in Cloud Storage or S3 is the name of the file, and in Cosmos DB the table name.
|
52
|
+
#
|
53
|
+
# @note Stability Level: development
|
54
|
+
#
|
55
|
+
# @example Sample Values
|
56
|
+
# myFile.txt
|
57
|
+
# myTableName
|
58
|
+
#
|
59
|
+
FAAS_DOCUMENT_NAME = 'faas.document.name'
|
60
|
+
|
61
|
+
# Describes the type of the operation that was performed on the data.
|
62
|
+
#
|
63
|
+
# @note Stability Level: development
|
64
|
+
FAAS_DOCUMENT_OPERATION = 'faas.document.operation'
|
65
|
+
|
66
|
+
# A string containing the time when the data was accessed in the [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format expressed in [UTC](https://www.w3.org/TR/NOTE-datetime).
|
67
|
+
#
|
68
|
+
# @note Stability Level: development
|
69
|
+
#
|
70
|
+
# @example Sample Values
|
71
|
+
# 2020-01-23T13:47:06Z
|
72
|
+
#
|
73
|
+
FAAS_DOCUMENT_TIME = 'faas.document.time'
|
74
|
+
|
75
|
+
# The execution environment ID as a string, that will be potentially reused for other invocations to the same function/function version.
|
76
|
+
#
|
77
|
+
# - **AWS Lambda:** Use the (full) log stream name.
|
78
|
+
#
|
79
|
+
# @note Stability Level: development
|
80
|
+
#
|
81
|
+
# @example Sample Values
|
82
|
+
# 2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de
|
83
|
+
#
|
84
|
+
FAAS_INSTANCE = 'faas.instance'
|
85
|
+
|
86
|
+
# The invocation ID of the current function invocation.
|
87
|
+
#
|
88
|
+
# @note Stability Level: development
|
89
|
+
#
|
90
|
+
# @example Sample Values
|
91
|
+
# af9d5aa4-a685-4c5f-a22b-444f80b3cc28
|
92
|
+
#
|
93
|
+
FAAS_INVOCATION_ID = 'faas.invocation_id'
|
94
|
+
|
95
|
+
# The name of the invoked function.
|
96
|
+
#
|
97
|
+
# SHOULD be equal to the `faas.name` resource attribute of the invoked function.
|
98
|
+
#
|
99
|
+
# @note Stability Level: development
|
100
|
+
#
|
101
|
+
# @example Sample Values
|
102
|
+
# my-function
|
103
|
+
#
|
104
|
+
FAAS_INVOKED_NAME = 'faas.invoked_name'
|
105
|
+
|
106
|
+
# The cloud provider of the invoked function.
|
107
|
+
#
|
108
|
+
# SHOULD be equal to the `cloud.provider` resource attribute of the invoked function.
|
109
|
+
#
|
110
|
+
# @note Stability Level: development
|
111
|
+
FAAS_INVOKED_PROVIDER = 'faas.invoked_provider'
|
112
|
+
|
113
|
+
# The cloud region of the invoked function.
|
114
|
+
#
|
115
|
+
# SHOULD be equal to the `cloud.region` resource attribute of the invoked function.
|
116
|
+
#
|
117
|
+
# @note Stability Level: development
|
118
|
+
#
|
119
|
+
# @example Sample Values
|
120
|
+
# eu-central-1
|
121
|
+
#
|
122
|
+
FAAS_INVOKED_REGION = 'faas.invoked_region'
|
123
|
+
|
124
|
+
# The amount of memory available to the serverless function converted to Bytes.
|
125
|
+
#
|
126
|
+
# It's recommended to set this attribute since e.g. too little memory can easily stop a Java AWS Lambda function from working correctly. On AWS Lambda, the environment variable `AWS_LAMBDA_FUNCTION_MEMORY_SIZE` provides this information (which must be multiplied by 1,048,576).
|
127
|
+
#
|
128
|
+
# @note Stability Level: development
|
129
|
+
#
|
130
|
+
# @example Sample Values
|
131
|
+
# 134217728
|
132
|
+
#
|
133
|
+
FAAS_MAX_MEMORY = 'faas.max_memory'
|
134
|
+
|
135
|
+
# The name of the single function that this runtime instance executes.
|
136
|
+
#
|
137
|
+
# This is the name of the function as configured/deployed on the FaaS
|
138
|
+
# platform and is usually different from the name of the callback
|
139
|
+
# function (which may be stored in the
|
140
|
+
# [`code.namespace`/`code.function.name`](/docs/general/attributes.md#source-code-attributes)
|
141
|
+
# span attributes).
|
142
|
+
#
|
143
|
+
# For some cloud providers, the above definition is ambiguous. The following
|
144
|
+
# definition of function name MUST be used for this attribute
|
145
|
+
# (and consequently the span name) for the listed cloud providers/products:
|
146
|
+
#
|
147
|
+
# - **Azure:** The full name `<FUNCAPP>/<FUNC>`, i.e., function app name
|
148
|
+
# followed by a forward slash followed by the function name (this form
|
149
|
+
# can also be seen in the resource JSON for the function).
|
150
|
+
# This means that a span attribute MUST be used, as an Azure function
|
151
|
+
# app can host multiple functions that would usually share
|
152
|
+
# a TracerProvider (see also the `cloud.resource_id` attribute).
|
153
|
+
#
|
154
|
+
# @note Stability Level: development
|
155
|
+
#
|
156
|
+
# @example Sample Values
|
157
|
+
# my-function
|
158
|
+
# myazurefunctionapp/some-function-name
|
159
|
+
#
|
160
|
+
FAAS_NAME = 'faas.name'
|
161
|
+
|
162
|
+
# A string containing the function invocation time in the [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format expressed in [UTC](https://www.w3.org/TR/NOTE-datetime).
|
163
|
+
#
|
164
|
+
# @note Stability Level: development
|
165
|
+
#
|
166
|
+
# @example Sample Values
|
167
|
+
# 2020-01-23T13:47:06Z
|
168
|
+
#
|
169
|
+
FAAS_TIME = 'faas.time'
|
170
|
+
|
171
|
+
# Type of the trigger which caused this function invocation.
|
172
|
+
#
|
173
|
+
# @note Stability Level: development
|
174
|
+
FAAS_TRIGGER = 'faas.trigger'
|
175
|
+
|
176
|
+
# The immutable version of the function being executed.
|
177
|
+
#
|
178
|
+
# Depending on the cloud provider and platform, use:
|
179
|
+
#
|
180
|
+
# - **AWS Lambda:** The [function version](https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html)
|
181
|
+
# (an integer represented as a decimal string).
|
182
|
+
# - **Google Cloud Run (Services):** The [revision](https://cloud.google.com/run/docs/managing/revisions)
|
183
|
+
# (i.e., the function name plus the revision suffix).
|
184
|
+
# - **Google Cloud Functions:** The value of the
|
185
|
+
# [`K_REVISION` environment variable](https://cloud.google.com/functions/docs/env-var#runtime_environment_variables_set_automatically).
|
186
|
+
# - **Azure Functions:** Not applicable. Do not set this attribute.
|
187
|
+
#
|
188
|
+
# @note Stability Level: development
|
189
|
+
#
|
190
|
+
# @example Sample Values
|
191
|
+
# 26
|
192
|
+
# pinkfroid-00002
|
193
|
+
#
|
194
|
+
FAAS_VERSION = 'faas.version'
|
195
|
+
|
196
|
+
# @!endgroup
|
197
|
+
end
|
198
|
+
end
|
199
|
+
end
|
200
|
+
end
|
@@ -0,0 +1,76 @@
|
|
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 FAAS
|
25
|
+
# @!group Metrics Names
|
26
|
+
|
27
|
+
# Number of invocation cold starts
|
28
|
+
#
|
29
|
+
# @note Stability Level: development
|
30
|
+
FAAS_COLDSTARTS = 'faas.coldstarts'
|
31
|
+
|
32
|
+
# Distribution of CPU usage per invocation
|
33
|
+
#
|
34
|
+
# @note Stability Level: development
|
35
|
+
FAAS_CPU_USAGE = 'faas.cpu_usage'
|
36
|
+
|
37
|
+
# Number of invocation errors
|
38
|
+
#
|
39
|
+
# @note Stability Level: development
|
40
|
+
FAAS_ERRORS = 'faas.errors'
|
41
|
+
|
42
|
+
# Measures the duration of the function's initialization, such as a cold start
|
43
|
+
#
|
44
|
+
# @note Stability Level: development
|
45
|
+
FAAS_INIT_DURATION = 'faas.init_duration'
|
46
|
+
|
47
|
+
# Number of successful invocations
|
48
|
+
#
|
49
|
+
# @note Stability Level: development
|
50
|
+
FAAS_INVOCATIONS = 'faas.invocations'
|
51
|
+
|
52
|
+
# Measures the duration of the function's logic execution
|
53
|
+
#
|
54
|
+
# @note Stability Level: development
|
55
|
+
FAAS_INVOKE_DURATION = 'faas.invoke_duration'
|
56
|
+
|
57
|
+
# Distribution of max memory usage per invocation
|
58
|
+
#
|
59
|
+
# @note Stability Level: development
|
60
|
+
FAAS_MEM_USAGE = 'faas.mem_usage'
|
61
|
+
|
62
|
+
# Distribution of net I/O usage per invocation
|
63
|
+
#
|
64
|
+
# @note Stability Level: development
|
65
|
+
FAAS_NET_IO = 'faas.net_io'
|
66
|
+
|
67
|
+
# Number of invocation timeouts
|
68
|
+
#
|
69
|
+
# @note Stability Level: development
|
70
|
+
FAAS_TIMEOUTS = 'faas.timeouts'
|
71
|
+
|
72
|
+
# @!endgroup
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
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 'faas/attributes'
|
22
|
+
require_relative 'faas/metrics'
|
@@ -0,0 +1,159 @@
|
|
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 FEATURE_FLAG
|
25
|
+
# @!group Attribute Names
|
26
|
+
|
27
|
+
# The unique identifier for the flag evaluation context. For example, the targeting key.
|
28
|
+
#
|
29
|
+
# @note Stability Level: release_candidate
|
30
|
+
#
|
31
|
+
# @example Sample Values
|
32
|
+
# 5157782b-2203-4c80-a857-dbbd5e7761db
|
33
|
+
#
|
34
|
+
FEATURE_FLAG_CONTEXT_ID = 'feature_flag.context.id'
|
35
|
+
|
36
|
+
# Deprecated, use `error.message` instead.
|
37
|
+
#
|
38
|
+
# @note Stability Level: development
|
39
|
+
#
|
40
|
+
# @example Sample Values
|
41
|
+
# Flag `header-color` expected type `string` but found type `number`
|
42
|
+
#
|
43
|
+
# @deprecated {"note": "Replaced by `error.message`.", "reason": "renamed", "renamed_to": "error.message"}
|
44
|
+
FEATURE_FLAG_EVALUATION_ERROR_MESSAGE = 'feature_flag.evaluation.error.message'
|
45
|
+
|
46
|
+
# Deprecated, use `feature_flag.result.reason` instead.
|
47
|
+
#
|
48
|
+
# @note Stability Level: development
|
49
|
+
#
|
50
|
+
# @example Sample Values
|
51
|
+
# static
|
52
|
+
# targeting_match
|
53
|
+
# error
|
54
|
+
# default
|
55
|
+
#
|
56
|
+
# @deprecated {"note": "Replaced by `feature_flag.result.reason`.", "reason": "renamed", "renamed_to": "feature_flag.result.reason"}
|
57
|
+
FEATURE_FLAG_EVALUATION_REASON = 'feature_flag.evaluation.reason'
|
58
|
+
|
59
|
+
# The lookup key of the feature flag.
|
60
|
+
#
|
61
|
+
# @note Stability Level: release_candidate
|
62
|
+
#
|
63
|
+
# @example Sample Values
|
64
|
+
# logo-color
|
65
|
+
#
|
66
|
+
FEATURE_FLAG_KEY = 'feature_flag.key'
|
67
|
+
|
68
|
+
# Identifies the feature flag provider.
|
69
|
+
#
|
70
|
+
# @note Stability Level: release_candidate
|
71
|
+
#
|
72
|
+
# @example Sample Values
|
73
|
+
# Flag Manager
|
74
|
+
#
|
75
|
+
FEATURE_FLAG_PROVIDER_NAME = 'feature_flag.provider.name'
|
76
|
+
|
77
|
+
# The reason code which shows how a feature flag value was determined.
|
78
|
+
#
|
79
|
+
# @note Stability Level: release_candidate
|
80
|
+
#
|
81
|
+
# @example Sample Values
|
82
|
+
# static
|
83
|
+
# targeting_match
|
84
|
+
# error
|
85
|
+
# default
|
86
|
+
#
|
87
|
+
FEATURE_FLAG_RESULT_REASON = 'feature_flag.result.reason'
|
88
|
+
|
89
|
+
# The evaluated value of the feature flag.
|
90
|
+
#
|
91
|
+
# With some feature flag providers, feature flag results can be quite large or contain private or sensitive details.
|
92
|
+
# Because of this, `feature_flag.result.variant` is often the preferred attribute if it is available.
|
93
|
+
#
|
94
|
+
# It may be desirable to redact or otherwise limit the size and scope of `feature_flag.result.value` if possible.
|
95
|
+
# Because the evaluated flag value is unstructured and may be any type, it is left to the instrumentation author to determine how best to achieve this.
|
96
|
+
#
|
97
|
+
# @note Stability Level: release_candidate
|
98
|
+
#
|
99
|
+
# @example Sample Values
|
100
|
+
# #ff0000
|
101
|
+
# true
|
102
|
+
# 3
|
103
|
+
#
|
104
|
+
FEATURE_FLAG_RESULT_VALUE = 'feature_flag.result.value'
|
105
|
+
|
106
|
+
# A semantic identifier for an evaluated flag value.
|
107
|
+
#
|
108
|
+
# A semantic identifier, commonly referred to as a variant, provides a means
|
109
|
+
# for referring to a value without including the value itself. This can
|
110
|
+
# provide additional context for understanding the meaning behind a value.
|
111
|
+
# For example, the variant `red` maybe be used for the value `#c05543`.
|
112
|
+
#
|
113
|
+
# @note Stability Level: release_candidate
|
114
|
+
#
|
115
|
+
# @example Sample Values
|
116
|
+
# red
|
117
|
+
# true
|
118
|
+
# on
|
119
|
+
#
|
120
|
+
FEATURE_FLAG_RESULT_VARIANT = 'feature_flag.result.variant'
|
121
|
+
|
122
|
+
# The identifier of the [flag set](https://openfeature.dev/specification/glossary/#flag-set) to which the feature flag belongs.
|
123
|
+
#
|
124
|
+
# @note Stability Level: release_candidate
|
125
|
+
#
|
126
|
+
# @example Sample Values
|
127
|
+
# proj-1
|
128
|
+
# ab98sgs
|
129
|
+
# service1/dev
|
130
|
+
#
|
131
|
+
FEATURE_FLAG_SET_ID = 'feature_flag.set.id'
|
132
|
+
|
133
|
+
# Deprecated, use `feature_flag.result.variant` instead.
|
134
|
+
#
|
135
|
+
# @note Stability Level: development
|
136
|
+
#
|
137
|
+
# @example Sample Values
|
138
|
+
# red
|
139
|
+
# true
|
140
|
+
# on
|
141
|
+
#
|
142
|
+
# @deprecated {"note": "Replaced by `feature_flag.result.variant`.", "reason": "renamed", "renamed_to": "feature_flag.result.variant"}
|
143
|
+
FEATURE_FLAG_VARIANT = 'feature_flag.variant'
|
144
|
+
|
145
|
+
# The version of the ruleset used during the evaluation. This may be any stable value which uniquely identifies the ruleset.
|
146
|
+
#
|
147
|
+
# @note Stability Level: release_candidate
|
148
|
+
#
|
149
|
+
# @example Sample Values
|
150
|
+
# 1
|
151
|
+
# 01ABCDEF
|
152
|
+
#
|
153
|
+
FEATURE_FLAG_VERSION = 'feature_flag.version'
|
154
|
+
|
155
|
+
# @!endgroup
|
156
|
+
end
|
157
|
+
end
|
158
|
+
end
|
159
|
+
end
|
@@ -0,0 +1,21 @@
|
|
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 'feature_flag/attributes'
|