opentelemetry-semantic_conventions 1.38.0 → 1.40.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/CHANGELOG.md +8 -0
- data/lib/opentelemetry/semantic_conventions/version.rb +2 -2
- data/lib/opentelemetry/semconv/db/attributes.rb +7 -2
- data/lib/opentelemetry/semconv/error/attributes.rb +1 -1
- data/lib/opentelemetry/semconv/exception/attributes.rb +2 -0
- data/lib/opentelemetry/semconv/http/attributes.rb +9 -2
- data/lib/opentelemetry/semconv/incubating/container/attributes.rb +7 -7
- data/lib/opentelemetry/semconv/incubating/db/attributes.rb +7 -2
- data/lib/opentelemetry/semconv/incubating/error/attributes.rb +2 -1
- data/lib/opentelemetry/semconv/incubating/exception/attributes.rb +2 -0
- data/lib/opentelemetry/semconv/incubating/feature_flag/attributes.rb +7 -2
- data/lib/opentelemetry/semconv/incubating/gcp/attributes.rb +15 -0
- data/lib/opentelemetry/semconv/incubating/gen_ai/attributes.rb +50 -0
- data/lib/opentelemetry/semconv/incubating/http/attributes.rb +9 -2
- data/lib/opentelemetry/semconv/incubating/jsonrpc/attributes.rb +44 -0
- data/lib/opentelemetry/semconv/incubating/jsonrpc.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/jvm/metrics.rb +5 -0
- data/lib/opentelemetry/semconv/incubating/k8s/attributes.rb +203 -39
- data/lib/opentelemetry/semconv/incubating/k8s/metrics.rb +43 -0
- data/lib/opentelemetry/semconv/incubating/linux/attributes.rb +1 -0
- data/lib/opentelemetry/semconv/incubating/mcp/attributes.rb +53 -0
- data/lib/opentelemetry/semconv/incubating/mcp/metrics.rb +51 -0
- data/lib/opentelemetry/semconv/incubating/mcp.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/message/attributes.rb +8 -8
- data/lib/opentelemetry/semconv/incubating/openai/attributes.rb +5 -0
- data/lib/opentelemetry/semconv/incubating/oracle/attributes.rb +79 -0
- data/lib/opentelemetry/semconv/incubating/oracle.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/oracle_cloud/attributes.rb +38 -0
- data/lib/opentelemetry/semconv/incubating/oracle_cloud.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/otel/attributes.rb +7 -0
- data/lib/opentelemetry/semconv/incubating/peer/attributes.rb +1 -0
- data/lib/opentelemetry/semconv/incubating/pprof/attributes.rb +31 -0
- data/lib/opentelemetry/semconv/incubating/process/metrics.rb +12 -1
- data/lib/opentelemetry/semconv/incubating/rpc/attributes.rb +108 -38
- data/lib/opentelemetry/semconv/incubating/rpc/metrics.rb +24 -2
- data/lib/opentelemetry/semconv/incubating/service/attributes.rb +24 -3
- data/lib/opentelemetry/semconv/incubating/system/attributes.rb +5 -0
- data/lib/opentelemetry/semconv/incubating/system/metrics.rb +30 -12
- data/lib/opentelemetry/semconv/incubating/thread/attributes.rb +2 -2
- data/lib/opentelemetry/semconv/incubating/url/attributes.rb +19 -0
- data/lib/opentelemetry/semconv/incubating/user_agent/attributes.rb +2 -2
- data/lib/opentelemetry/semconv/service/attributes.rb +40 -1
- data/lib/opentelemetry/semconv/url/attributes.rb +19 -0
- metadata +13 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ffb65318e9077b70e39094e8e36a040324a86efc2867623ecca7dafc65a9dfa2
|
|
4
|
+
data.tar.gz: ed3108a7b4bda42719148657e18a5c9eb4d88546901f4bb54c7ed011cb1ec01f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 42a11f6d13e431ddf77031dc2feee263fb262992977775b95ec55b6983f9aa620f982fed217d5c53ba34d852e3a8aca96de76ebd22c66e5d37de8a6eec5868e0
|
|
7
|
+
data.tar.gz: 72f1d1a8d50aea38822821325f5c311a9ae1e9f1e92c2f79d7670bf7480534bcd60a8cb3052152331d3d3e3f780eabc536e9d4dc1bd1e484169b9123a7c1c21c
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Release History: opentelemetry-semantic_conventions
|
|
2
2
|
|
|
3
|
+
### v1.40.0 / 2026-06-09
|
|
4
|
+
|
|
5
|
+
* ADDED: Update dependency open-telemetry/semantic-conventions to v1.40.0 (#2173)
|
|
6
|
+
|
|
7
|
+
### v1.39.0 / 2026-06-03
|
|
8
|
+
|
|
9
|
+
* ADDED: Update dependency open-telemetry/semantic-conventions to v1.39.0 (#2137)
|
|
10
|
+
|
|
3
11
|
### v1.38.0 / 2026-05-21
|
|
4
12
|
|
|
5
13
|
* ADDED: Update semantic conventions to v1.38.0 (#2136)
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
module OpenTelemetry
|
|
8
8
|
module SemanticConventions
|
|
9
9
|
# Version of the OpenTelemetry Semantic Conventions from which this library was generated.
|
|
10
|
-
SPEC_VERSION = '1.
|
|
10
|
+
SPEC_VERSION = '1.40.0'
|
|
11
11
|
# Release version of this gem. May not match SPEC_VERSION until gem is released after a spec update.
|
|
12
|
-
VERSION = '1.
|
|
12
|
+
VERSION = '1.40.0'
|
|
13
13
|
end
|
|
14
14
|
end
|
|
@@ -83,15 +83,20 @@ module OpenTelemetry
|
|
|
83
83
|
# Summary may be available to the instrumentation through
|
|
84
84
|
# instrumentation hooks or other means. If it is not available, instrumentations
|
|
85
85
|
# that support query parsing SHOULD generate a summary following
|
|
86
|
-
# [Generating query summary](/docs/
|
|
86
|
+
# [Generating query summary](/docs/db/database-spans.md#generating-a-summary-of-the-query)
|
|
87
87
|
# section.
|
|
88
88
|
#
|
|
89
|
+
# For batch operations, if the individual operations are known to have the same query summary
|
|
90
|
+
# then that query summary SHOULD be used prepended by `BATCH `,
|
|
91
|
+
# otherwise `db.query.summary` SHOULD be `BATCH` or some other database
|
|
92
|
+
# system specific term if more applicable.
|
|
93
|
+
#
|
|
89
94
|
# @note Stability Level: stable
|
|
90
95
|
DB_QUERY_SUMMARY = 'db.query.summary'
|
|
91
96
|
|
|
92
97
|
# The database query being executed.
|
|
93
98
|
#
|
|
94
|
-
# For sanitization see [Sanitization of `db.query.text`](/docs/
|
|
99
|
+
# For sanitization see [Sanitization of `db.query.text`](/docs/db/database-spans.md#sanitization-of-dbquerytext).
|
|
95
100
|
# For batch operations, if the individual operations are known to have the same query text then that query text SHOULD be used, otherwise all of the individual query texts SHOULD be concatenated with separator `; ` or some other database system specific separator if more applicable.
|
|
96
101
|
# Parameterized query text SHOULD NOT be sanitized. Even though parameterized query text can potentially have sensitive data, by using a parameterized query the user is giving a strong signal that any sensitive data will be passed as parameter values, and the benefit to observability of capturing the static part of the query text by default outweighs the risk.
|
|
97
102
|
#
|
|
@@ -39,7 +39,7 @@ module OpenTelemetry
|
|
|
39
39
|
#
|
|
40
40
|
# If the operation has completed successfully, instrumentations SHOULD NOT set `error.type`.
|
|
41
41
|
#
|
|
42
|
-
# If a specific domain defines its own set of error identifiers (such as HTTP or
|
|
42
|
+
# If a specific domain defines its own set of error identifiers (such as HTTP or RPC status codes),
|
|
43
43
|
# it's RECOMMENDED to:
|
|
44
44
|
#
|
|
45
45
|
# - Use a domain-specific attribute
|
|
@@ -62,8 +62,15 @@ module OpenTelemetry
|
|
|
62
62
|
#
|
|
63
63
|
# If the HTTP instrumentation could end up converting valid HTTP request methods to `_OTHER`, then it MUST provide a way to override
|
|
64
64
|
# the list of known HTTP methods. If this override is done via environment variable, then the environment variable MUST be named
|
|
65
|
-
# OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods
|
|
66
|
-
#
|
|
65
|
+
# OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods.
|
|
66
|
+
#
|
|
67
|
+
#
|
|
68
|
+
# If this override is done via declarative configuration, then the list MUST be configurable via the `known_methods` property
|
|
69
|
+
# (an array of case-sensitive strings with minimum items 0) under `.instrumentation/development.general.http.client` and/or
|
|
70
|
+
# `.instrumentation/development.general.http.server`.
|
|
71
|
+
#
|
|
72
|
+
# In either case, this list MUST be a full override of the default known methods,
|
|
73
|
+
# it is not a list of known methods in addition to the defaults.
|
|
67
74
|
#
|
|
68
75
|
# HTTP method names are case-sensitive and `http.request.method` attribute value MUST match a known HTTP method name exactly.
|
|
69
76
|
# Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, SHOULD populate a canonical equivalent.
|
|
@@ -63,12 +63,12 @@ module OpenTelemetry
|
|
|
63
63
|
|
|
64
64
|
# Container ID. Usually a UUID, as for example used to [identify Docker containers](https://docs.docker.com/engine/containers/run/#container-identification). The UUID might be abbreviated.
|
|
65
65
|
#
|
|
66
|
-
# @note Stability Level:
|
|
66
|
+
# @note Stability Level: beta
|
|
67
67
|
CONTAINER_ID = 'container.id'
|
|
68
68
|
|
|
69
69
|
# Runtime specific image identifier. Usually a hash algorithm followed by a UUID.
|
|
70
70
|
#
|
|
71
|
-
# Docker defines a sha256 of the image id; `container.image.id` corresponds to the `Image` field from the Docker container inspect [API](https://docs.docker.com/reference/api/engine/version/v1.
|
|
71
|
+
# Docker defines a sha256 of the image id; `container.image.id` corresponds to the `Image` field from the Docker container inspect [API](https://docs.docker.com/reference/api/engine/version/v1.52/#tag/Container/operation/ContainerInspect) endpoint.
|
|
72
72
|
# K8s defines a link to the container registry repository with digest `"imageID": "registry.azurecr.io /namespace/service/dockerfile@sha256:bdeabd40c3a8a492eaf9e8e44d0ebbb84bac7ee25ac0cf8a7159d25f62555625"`.
|
|
73
73
|
# The ID is assigned by the container runtime and can vary in different environments. Consider using `oci.manifest.digest` if it is important to identify the same image in different environments/runtimes.
|
|
74
74
|
#
|
|
@@ -77,19 +77,19 @@ module OpenTelemetry
|
|
|
77
77
|
|
|
78
78
|
# Name of the image the container was built on.
|
|
79
79
|
#
|
|
80
|
-
# @note Stability Level:
|
|
80
|
+
# @note Stability Level: beta
|
|
81
81
|
CONTAINER_IMAGE_NAME = 'container.image.name'
|
|
82
82
|
|
|
83
83
|
# Repo digests of the container image as provided by the container runtime.
|
|
84
84
|
#
|
|
85
|
-
# [Docker](https://docs.docker.com/reference/api/engine/version/v1.
|
|
85
|
+
# [Docker](https://docs.docker.com/reference/api/engine/version/v1.52/#tag/Image/operation/ImageInspect) and [CRI](https://github.com/kubernetes/cri-api/blob/c75ef5b473bbe2d0a4fc92f82235efd665ea8e9f/pkg/apis/runtime/v1/api.proto#L1237-L1238) report those under the `RepoDigests` field.
|
|
86
86
|
#
|
|
87
|
-
# @note Stability Level:
|
|
87
|
+
# @note Stability Level: beta
|
|
88
88
|
CONTAINER_IMAGE_REPO_DIGESTS = 'container.image.repo_digests'
|
|
89
89
|
|
|
90
|
-
# Container image tags. An example can be found in [Docker Image Inspect](https://docs.docker.com/reference/api/engine/version/v1.
|
|
90
|
+
# Container image tags. An example can be found in [Docker Image Inspect](https://docs.docker.com/reference/api/engine/version/v1.52/#tag/Image/operation/ImageInspect). Should be only the `<tag>` section of the full name for example from `registry.example.com/my-org/my-image:<tag>`.
|
|
91
91
|
#
|
|
92
|
-
# @note Stability Level:
|
|
92
|
+
# @note Stability Level: beta
|
|
93
93
|
CONTAINER_IMAGE_TAGS = 'container.image.tags'
|
|
94
94
|
|
|
95
95
|
# Must be called with a key for the full attribute name. See notes below about the expectations
|
|
@@ -328,9 +328,14 @@ module OpenTelemetry
|
|
|
328
328
|
# Summary may be available to the instrumentation through
|
|
329
329
|
# instrumentation hooks or other means. If it is not available, instrumentations
|
|
330
330
|
# that support query parsing SHOULD generate a summary following
|
|
331
|
-
# [Generating query summary](/docs/
|
|
331
|
+
# [Generating query summary](/docs/db/database-spans.md#generating-a-summary-of-the-query)
|
|
332
332
|
# section.
|
|
333
333
|
#
|
|
334
|
+
# For batch operations, if the individual operations are known to have the same query summary
|
|
335
|
+
# then that query summary SHOULD be used prepended by `BATCH `,
|
|
336
|
+
# otherwise `db.query.summary` SHOULD be `BATCH` or some other database
|
|
337
|
+
# system specific term if more applicable.
|
|
338
|
+
#
|
|
334
339
|
# @note Stability Level: stable
|
|
335
340
|
#
|
|
336
341
|
# @deprecated Now available in the stable namespace at {OpenTelemetry::SemConv::DB::DB_QUERY_SUMMARY}.
|
|
@@ -338,7 +343,7 @@ module OpenTelemetry
|
|
|
338
343
|
|
|
339
344
|
# The database query being executed.
|
|
340
345
|
#
|
|
341
|
-
# For sanitization see [Sanitization of `db.query.text`](/docs/
|
|
346
|
+
# For sanitization see [Sanitization of `db.query.text`](/docs/db/database-spans.md#sanitization-of-dbquerytext).
|
|
342
347
|
# For batch operations, if the individual operations are known to have the same query text then that query text SHOULD be used, otherwise all of the individual query texts SHOULD be concatenated with separator `; ` or some other database system specific separator if more applicable.
|
|
343
348
|
# Parameterized query text SHOULD NOT be sanitized. Even though parameterized query text can potentially have sensitive data, by using a parameterized query the user is giving a strong signal that any sensitive data will be passed as parameter values, and the benefit to observability of capturing the static part of the query text by default outweighs the risk.
|
|
344
349
|
#
|
|
@@ -33,6 +33,7 @@ module OpenTelemetry
|
|
|
33
33
|
# `error.message` is NOT RECOMMENDED for metrics or spans due to its unbounded cardinality and overlap with span status.
|
|
34
34
|
#
|
|
35
35
|
# @note Stability Level: development
|
|
36
|
+
# @deprecated Use domain-specific error message attribute. For example, use `feature_flag.error.message` for feature flag errors.
|
|
36
37
|
ERROR_MESSAGE = 'error.message'
|
|
37
38
|
|
|
38
39
|
# Describes a class of error the operation ended with.
|
|
@@ -51,7 +52,7 @@ module OpenTelemetry
|
|
|
51
52
|
#
|
|
52
53
|
# If the operation has completed successfully, instrumentations SHOULD NOT set `error.type`.
|
|
53
54
|
#
|
|
54
|
-
# If a specific domain defines its own set of error identifiers (such as HTTP or
|
|
55
|
+
# If a specific domain defines its own set of error identifiers (such as HTTP or RPC status codes),
|
|
55
56
|
# it's RECOMMENDED to:
|
|
56
57
|
#
|
|
57
58
|
# - Use a domain-specific attribute
|
|
@@ -32,6 +32,8 @@ module OpenTelemetry
|
|
|
32
32
|
|
|
33
33
|
# The exception message.
|
|
34
34
|
#
|
|
35
|
+
# > [!WARNING]> This attribute may contain sensitive information.
|
|
36
|
+
#
|
|
35
37
|
# @note Stability Level: stable
|
|
36
38
|
#
|
|
37
39
|
# @deprecated Now available in the stable namespace at {OpenTelemetry::SemConv::EXCEPTION::EXCEPTION_MESSAGE}.
|
|
@@ -29,10 +29,15 @@ module OpenTelemetry
|
|
|
29
29
|
# @note Stability Level: release_candidate
|
|
30
30
|
FEATURE_FLAG_CONTEXT_ID = 'feature_flag.context.id'
|
|
31
31
|
|
|
32
|
-
#
|
|
32
|
+
# A message providing more detail about an error that occurred during feature flag evaluation in human-readable form.
|
|
33
|
+
#
|
|
34
|
+
# @note Stability Level: release_candidate
|
|
35
|
+
FEATURE_FLAG_ERROR_MESSAGE = 'feature_flag.error.message'
|
|
36
|
+
|
|
37
|
+
# Deprecated, use `feature_flag.error.message` instead.
|
|
33
38
|
#
|
|
34
39
|
# @note Stability Level: development
|
|
35
|
-
# @deprecated Replaced by `error.message`.
|
|
40
|
+
# @deprecated Replaced by `feature_flag.error.message`.
|
|
36
41
|
FEATURE_FLAG_EVALUATION_ERROR_MESSAGE = 'feature_flag.evaluation.error.message'
|
|
37
42
|
|
|
38
43
|
# Deprecated, use `feature_flag.result.reason` instead.
|
|
@@ -149,6 +149,21 @@ module OpenTelemetry
|
|
|
149
149
|
# @note Stability Level: development
|
|
150
150
|
GCP_GCE_INSTANCE_NAME = 'gcp.gce.instance.name'
|
|
151
151
|
|
|
152
|
+
# The name of the Instance Group Manager (IGM) that manages this VM, if any.
|
|
153
|
+
#
|
|
154
|
+
# @note Stability Level: development
|
|
155
|
+
GCP_GCE_INSTANCE_GROUP_MANAGER_NAME = 'gcp.gce.instance_group_manager.name'
|
|
156
|
+
|
|
157
|
+
# The region of a **regional** Instance Group Manager (e.g., `us-central1`). Set this **only** when the IGM is regional.
|
|
158
|
+
#
|
|
159
|
+
# @note Stability Level: development
|
|
160
|
+
GCP_GCE_INSTANCE_GROUP_MANAGER_REGION = 'gcp.gce.instance_group_manager.region'
|
|
161
|
+
|
|
162
|
+
# The zone of a **zonal** Instance Group Manager (e.g., `us-central1-a`). Set this **only** when the IGM is zonal.
|
|
163
|
+
#
|
|
164
|
+
# @note Stability Level: development
|
|
165
|
+
GCP_GCE_INSTANCE_GROUP_MANAGER_ZONE = 'gcp.gce.instance_group_manager.zone'
|
|
166
|
+
|
|
152
167
|
# @!endgroup
|
|
153
168
|
end
|
|
154
169
|
end
|
|
@@ -39,6 +39,11 @@ module OpenTelemetry
|
|
|
39
39
|
# @note Stability Level: development
|
|
40
40
|
GEN_AI_AGENT_NAME = 'gen_ai.agent.name'
|
|
41
41
|
|
|
42
|
+
# The version of the GenAI agent.
|
|
43
|
+
#
|
|
44
|
+
# @note Stability Level: development
|
|
45
|
+
GEN_AI_AGENT_VERSION = 'gen_ai.agent.version'
|
|
46
|
+
|
|
42
47
|
# Deprecated, use Event API to report completions contents.
|
|
43
48
|
#
|
|
44
49
|
# @note Stability Level: development
|
|
@@ -181,6 +186,11 @@ module OpenTelemetry
|
|
|
181
186
|
# @deprecated Removed, no replacement at this time.
|
|
182
187
|
GEN_AI_PROMPT = 'gen_ai.prompt'
|
|
183
188
|
|
|
189
|
+
# The name of the prompt that uniquely identifies it.
|
|
190
|
+
#
|
|
191
|
+
# @note Stability Level: development
|
|
192
|
+
GEN_AI_PROMPT_NAME = 'gen_ai.prompt.name'
|
|
193
|
+
|
|
184
194
|
# The Generative AI provider as identified by the client or server instrumentation.
|
|
185
195
|
#
|
|
186
196
|
# The attribute SHOULD be set based on the instrumentation's best
|
|
@@ -277,6 +287,27 @@ module OpenTelemetry
|
|
|
277
287
|
# @note Stability Level: development
|
|
278
288
|
GEN_AI_RESPONSE_MODEL = 'gen_ai.response.model'
|
|
279
289
|
|
|
290
|
+
# The documents retrieved.
|
|
291
|
+
#
|
|
292
|
+
# Instrumentations MUST follow [Retrieval documents JSON schema](/docs/gen-ai/gen-ai-retrieval-documents.json).
|
|
293
|
+
# When the attribute is recorded on events, it MUST be recorded in structured
|
|
294
|
+
# form. When recorded on spans, it MAY be recorded as a JSON string if structured
|
|
295
|
+
# format is not supported and SHOULD be recorded in structured form otherwise.
|
|
296
|
+
#
|
|
297
|
+
# Each document object SHOULD contain at least the following properties:
|
|
298
|
+
# `id` (string): A unique identifier for the document, `score` (double): The relevance score of the document
|
|
299
|
+
#
|
|
300
|
+
# @note Stability Level: development
|
|
301
|
+
GEN_AI_RETRIEVAL_DOCUMENTS = 'gen_ai.retrieval.documents'
|
|
302
|
+
|
|
303
|
+
# The query text used for retrieval.
|
|
304
|
+
#
|
|
305
|
+
# > [!Warning]
|
|
306
|
+
# > This attribute may contain sensitive information.
|
|
307
|
+
#
|
|
308
|
+
# @note Stability Level: development
|
|
309
|
+
GEN_AI_RETRIEVAL_QUERY_TEXT = 'gen_ai.retrieval.query.text'
|
|
310
|
+
|
|
280
311
|
# Deprecated, use `gen_ai.provider.name` instead.
|
|
281
312
|
#
|
|
282
313
|
# @note Stability Level: development
|
|
@@ -379,6 +410,20 @@ module OpenTelemetry
|
|
|
379
410
|
# @note Stability Level: development
|
|
380
411
|
GEN_AI_TOOL_TYPE = 'gen_ai.tool.type'
|
|
381
412
|
|
|
413
|
+
# The number of input tokens written to a provider-managed cache.
|
|
414
|
+
#
|
|
415
|
+
# The value SHOULD be included in `gen_ai.usage.input_tokens`.
|
|
416
|
+
#
|
|
417
|
+
# @note Stability Level: development
|
|
418
|
+
GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS = 'gen_ai.usage.cache_creation.input_tokens'
|
|
419
|
+
|
|
420
|
+
# The number of input tokens served from a provider-managed cache.
|
|
421
|
+
#
|
|
422
|
+
# The value SHOULD be included in `gen_ai.usage.input_tokens`.
|
|
423
|
+
#
|
|
424
|
+
# @note Stability Level: development
|
|
425
|
+
GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS = 'gen_ai.usage.cache_read.input_tokens'
|
|
426
|
+
|
|
382
427
|
# Deprecated, use `gen_ai.usage.output_tokens` instead.
|
|
383
428
|
#
|
|
384
429
|
# @note Stability Level: development
|
|
@@ -387,6 +432,11 @@ module OpenTelemetry
|
|
|
387
432
|
|
|
388
433
|
# The number of tokens used in the GenAI input (prompt).
|
|
389
434
|
#
|
|
435
|
+
# This value SHOULD include all types of input tokens, including cached tokens.
|
|
436
|
+
# Instrumentations SHOULD make a best effort to populate this value, using a total
|
|
437
|
+
# provided by the provider when available or, depending on the provider API,
|
|
438
|
+
# by summing different token types parsed from the provider output.
|
|
439
|
+
#
|
|
390
440
|
# @note Stability Level: development
|
|
391
441
|
GEN_AI_USAGE_INPUT_TOKENS = 'gen_ai.usage.input_tokens'
|
|
392
442
|
|
|
@@ -99,8 +99,15 @@ module OpenTelemetry
|
|
|
99
99
|
#
|
|
100
100
|
# If the HTTP instrumentation could end up converting valid HTTP request methods to `_OTHER`, then it MUST provide a way to override
|
|
101
101
|
# the list of known HTTP methods. If this override is done via environment variable, then the environment variable MUST be named
|
|
102
|
-
# OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods
|
|
103
|
-
#
|
|
102
|
+
# OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods.
|
|
103
|
+
#
|
|
104
|
+
#
|
|
105
|
+
# If this override is done via declarative configuration, then the list MUST be configurable via the `known_methods` property
|
|
106
|
+
# (an array of case-sensitive strings with minimum items 0) under `.instrumentation/development.general.http.client` and/or
|
|
107
|
+
# `.instrumentation/development.general.http.server`.
|
|
108
|
+
#
|
|
109
|
+
# In either case, this list MUST be a full override of the default known methods,
|
|
110
|
+
# it is not a list of known methods in addition to the defaults.
|
|
104
111
|
#
|
|
105
112
|
# HTTP method names are case-sensitive and `http.request.method` attribute value MUST match a known HTTP method name exactly.
|
|
106
113
|
# Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, SHOULD populate a canonical equivalent.
|
|
@@ -0,0 +1,44 @@
|
|
|
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 JSONRPC
|
|
25
|
+
# @!group Attribute Names
|
|
26
|
+
|
|
27
|
+
# Protocol version, as specified in the `jsonrpc` property of the request and its corresponding response.
|
|
28
|
+
#
|
|
29
|
+
# @note Stability Level: development
|
|
30
|
+
JSONRPC_PROTOCOL_VERSION = 'jsonrpc.protocol.version'
|
|
31
|
+
|
|
32
|
+
# A string representation of the `id` property of the request and its corresponding response.
|
|
33
|
+
#
|
|
34
|
+
# Under the [JSON-RPC specification](https://www.jsonrpc.org/specification), the `id` property may be a string, number, null, or omitted entirely. When omitted, the request is treated as a notification. Using `null` is not equivalent to omitting the `id`, but it is discouraged.
|
|
35
|
+
# Instrumentations SHOULD NOT capture this attribute when the `id` is `null` or omitted.
|
|
36
|
+
#
|
|
37
|
+
# @note Stability Level: development
|
|
38
|
+
JSONRPC_REQUEST_ID = 'jsonrpc.request.id'
|
|
39
|
+
|
|
40
|
+
# @!endgroup
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
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 'jsonrpc/attributes'
|
|
@@ -94,6 +94,11 @@ module OpenTelemetry
|
|
|
94
94
|
# @note Stability Level: development
|
|
95
95
|
JVM_FILE_DESCRIPTOR_COUNT = 'jvm.file_descriptor.count'
|
|
96
96
|
|
|
97
|
+
# Measure of max open file descriptors as reported by the JVM.
|
|
98
|
+
#
|
|
99
|
+
# @note Stability Level: development
|
|
100
|
+
JVM_FILE_DESCRIPTOR_LIMIT = 'jvm.file_descriptor.limit'
|
|
101
|
+
|
|
97
102
|
# Duration of JVM garbage collection actions.
|
|
98
103
|
#
|
|
99
104
|
# @note Stability Level: stable
|