You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Generate semantic conventions 1.31.0
We cannot bump weaver because something changed in the format of the
notes and requires update in the jinja templates.
Added trimming when rendering metrics to fix rendering of multiline
brief attributes that broke rendering of hw_metrics.
* Add changelog
The human readable name of a task within a pipeline. Task here most closely aligns with a [computing process](https://wikipedia.org/wiki/Pipeline_(computing)) in a pipeline. Other terms for tasks include commands, steps, and procedures.
The [URL](https://wikipedia.org/wiki/URL) of the pipeline run providing the complete address in order to locate and identify the pipeline run.
55
+
The [URL](https://wikipedia.org/wiki/URL) of the pipeline task run, providing the complete address in order to locate and identify the pipeline task run.
Copy file name to clipboardexpand all lines: opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/cloud_attributes.py
+1-1
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@
45
45
46
46
CLOUD_RESOURCE_ID: Final="cloud.resource_id"
47
47
"""
48
-
Cloud provider-specific native identifier of the monitored cloud resource (e.g. an [ARN](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) on AWS, a [fully qualified resource ID](https://learn.microsoft.com/rest/api/resources/resources/get-by-id) on Azure, a [full resource name](https://cloud.google.com/apis/design/resource_names#full_resource_name) on GCP).
48
+
Cloud provider-specific native identifier of the monitored cloud resource (e.g. an [ARN](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) on AWS, a [fully qualified resource ID](https://learn.microsoft.com/rest/api/resources/resources/get-by-id) on Azure, a [full resource name](https://google.aip.dev/122#full-resource-names) on GCP).
49
49
Note: On some cloud providers, it may not be possible to determine the full ID at startup,
50
50
so it may be necessary to set `cloud.resource_id` as a span attribute instead.
Copy file name to clipboardexpand all lines: opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/code_attributes.py
+19-4
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@
31
31
32
32
CODE_FILEPATH: Final="code.filepath"
33
33
"""
34
-
Deprecated, use `code.file.path` instead.
34
+
Deprecated: Replaced by `code.file.path`.
35
35
"""
36
36
37
37
CODE_FUNCTION: Final="code.function"
@@ -41,7 +41,22 @@
41
41
42
42
CODE_FUNCTION_NAME: Final="code.function.name"
43
43
"""
44
-
The method or function name, or equivalent (usually rightmost part of the code unit's name).
44
+
The method or function fully-qualified name without arguments. The value should fit the natural representation of the language runtime, which is also likely the same used within `code.stacktrace` attribute value.
45
+
Note: Values and format depends on each language runtime, thus it is impossible to provide an exhaustive list of examples.
46
+
The values are usually the same (or prefixes of) the ones found in native stack trace representation stored in
47
+
`code.stacktrace` without information on arguments.
The "namespace" within which `code.function.name` is defined. Usually the qualified class or module name, such that `code.namespace` + some separator + `code.function.name` form a unique identifier for the code unit.
74
+
Deprecated: Value should be included in `code.function.name` which is expected to be a fully-qualified name.
60
75
"""
61
76
62
77
CODE_STACKTRACE: Final="code.stacktrace"
63
78
"""
64
-
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.
79
+
A stacktrace as a string in the natural representation for the language runtime. The representation is identical to [`exception.stacktrace`](/docs/exceptions/exceptions-spans.md#stacktrace-representation).
The operation name SHOULD NOT be extracted from `db.query.text`,
212
-
unless the query format is known to only ever have a single operation name present.
213
+
when the database system supports cross-table queries in non-batch operations.
213
214
214
215
For batch operations, if the individual operations are known to have the same operation name
215
216
then that operation name SHOULD be used prepended by `BATCH `,
@@ -233,13 +234,13 @@
233
234
"""
234
235
Low cardinality representation of a database query text.
235
236
Note: `db.query.summary` provides static summary of the query text. It describes a class of database queries and is useful as a grouping key, especially when analyzing telemetry for database calls involving complex queries.
236
-
Summary may be available to the instrumentation through instrumentation hooks or other means. If it is not available, instrumentations that support query parsing SHOULD generate a summary following [Generating query summary](../../docs/database/database-spans.md#generating-a-summary-of-the-query-text) section.
237
+
Summary may be available to the instrumentation through instrumentation hooks or other means. If it is not available, instrumentations that support query parsing SHOULD generate a summary following [Generating query summary](../database/database-spans.md#generating-a-summary-of-the-query-text) section.
237
238
"""
238
239
239
240
DB_QUERY_TEXT: Final="db.query.text"
240
241
"""
241
242
The database query being executed.
242
-
Note: For sanitization see [Sanitization of `db.query.text`](../../docs/database/database-spans.md#sanitization-of-dbquerytext).
243
+
Note: For sanitization see [Sanitization of `db.query.text`](../database/database-spans.md#sanitization-of-dbquerytext).
243
244
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.
244
245
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.
Copy file name to clipboardexpand all lines: opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/enduser_attributes.py
+14-1
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,20 @@
16
16
17
17
ENDUSER_ID: Final="enduser.id"
18
18
"""
19
-
Deprecated: Replaced by `user.id` attribute.
19
+
Unique identifier of an end user in the system. It maybe a username, email address, or other identifier.
20
+
Note: Unique identifier of an end user in the system.
21
+
22
+
> [!Warning]
23
+
> This field contains sensitive (PII) information.
24
+
"""
25
+
26
+
ENDUSER_PSEUDO_ID: Final="enduser.pseudo.id"
27
+
"""
28
+
Pseudonymous identifier of an end user. This identifier should be a random value that is not directly linked or associated with the end user's actual identity.
29
+
Note: Pseudonymous identifier of an end user.
30
+
31
+
> [!Warning]
32
+
> This field contains sensitive (linkable PII) information.
Note: If one of the predefined values applies, but specific system uses a different name it's RECOMMENDED to document it in the semantic conventions for specific GenAI system and use system-specific name in the instrumentation. If a different name is not documented, instrumentation libraries SHOULD use applicable predefined value.
60
77
"""
61
78
79
+
GEN_AI_OUTPUT_TYPE: Final="gen_ai.output.type"
80
+
"""
81
+
Represents the content type requested by the client.
82
+
Note: This attribute SHOULD be used when the client requests output of a specific type. The model may return zero or more outputs of this type.
83
+
This attribute specifies the output modality and not the actual output format. For example, if an image is requested, the actual output could be a URL pointing to an image file.
84
+
Additional output format details may be recorded in the future in the `gen_ai.output.{type}.*` attributes.
0 commit comments