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
Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.
44
44
"""
45
45
@@ -68,6 +68,11 @@ class ResourceAttributes:
68
68
The task definition family this task definition is a member of.
69
69
"""
70
70
71
+
AWS_ECS_TASK_REVISION="aws.ecs.task.revision"
72
+
"""
73
+
The revision for this task definition.
74
+
"""
75
+
71
76
AWS_EKS_CLUSTER_ARN="aws.eks.cluster.arn"
72
77
"""
73
78
The ARN of an EKS cluster.
@@ -126,25 +131,67 @@ class ResourceAttributes:
126
131
Name of the [deployment environment](https://en.wikipedia.org/wiki/Deployment_environment) (aka deployment tier).
127
132
"""
128
133
134
+
DEVICE_ID="device.id"
135
+
"""
136
+
A unique identifier representing the device.
137
+
Note: The device identifier MUST only be defined using the values outlined below. This value is not an advertising identifier and MUST NOT be used as such. On iOS (Swift or Objective-C), this value MUST be equal to the [vendor identifier](https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor). On Android (Java or Kotlin), this value MUST be equal to the Firebase Installation ID or a globally unique UUID which is persisted across sessions in your application. More information can be found [here](https://developer.android.com/training/articles/user-data-ids) on best practices and exact implementation details. Caution should be taken when storing personal data or anything which can identify a user. GDPR and data protection laws may apply, ensure you do your own due diligence.
138
+
"""
139
+
140
+
DEVICE_MODEL_IDENTIFIER="device.model.identifier"
141
+
"""
142
+
The model identifier for the device.
143
+
Note: It's recommended this value represents a machine readable version of the model identifier rather than the market or consumer-friendly name of the device.
144
+
"""
145
+
146
+
DEVICE_MODEL_NAME="device.model.name"
147
+
"""
148
+
The marketing name for the device model.
149
+
Note: It's recommended this value represents a human readable version of the device model rather than a machine readable alternative.
150
+
"""
151
+
129
152
FAAS_NAME="faas.name"
130
153
"""
131
-
The name of the function being executed.
154
+
The name of the single function that this runtime instance executes.
155
+
Note: This is the name of the function as configured/deployed on the FaaS platform and is usually different from the name of the callback function (which may be stored in the [`code.namespace`/`code.function`](../../trace/semantic_conventions/span-general.md#source-code-attributes) span attributes).
132
156
"""
133
157
134
158
FAAS_ID="faas.id"
135
159
"""
136
-
The unique ID of the function being executed.
137
-
Note: For example, in AWS Lambda this field corresponds to the [ARN](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) value, in GCP to the URI of the resource, and in Azure to the [FunctionDirectory](https://github.com/Azure/azure-functions-host/wiki/Retrieving-information-about-the-currently-running-function) field.
160
+
The unique ID of the single function that this runtime instance executes.
161
+
Note: Depending on the cloud provider, use:
162
+
163
+
* **AWS Lambda:** The function [ARN](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html).
164
+
Take care not to use the "invoked ARN" directly but replace any
165
+
[alias suffix](https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html) with the resolved function version, as the same runtime instance may be invokable with multiple
166
+
different aliases.
167
+
* **GCP:** The [URI of the resource](https://cloud.google.com/iam/docs/full-resource-names)
168
+
* **Azure:** The [Fully Qualified Resource ID](https://docs.microsoft.com/en-us/rest/api/resources/resources/get-by-id).
169
+
170
+
On some providers, it may not be possible to determine the full ID at startup,
171
+
which is why this field cannot be made required. For example, on AWS the account ID
172
+
part of the ARN is not available without calling another AWS API
173
+
which may be deemed too slow for a short-running lambda function.
174
+
As an alternative, consider setting `faas.id` as a span attribute instead.
138
175
"""
139
176
140
177
FAAS_VERSION="faas.version"
141
178
"""
142
-
The version string of the function being executed as defined in [Version Attributes](../../resource/semantic_conventions/README.md#version-attributes).
179
+
The immutable version of the function being executed.
180
+
Note: Depending on the cloud provider and platform, use:
181
+
182
+
* **AWS Lambda:** The [function version](https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html)
183
+
(an integer represented as a decimal string).
184
+
* **Google Cloud Run:** The [revision](https://cloud.google.com/run/docs/managing/revisions)
185
+
(i.e., the function name plus the revision suffix).
0 commit comments