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
* Licensed under the Apache License, Version 2.0 (the "License");
5
+
* you may not use this file except in compliance with the License.
6
+
* You may obtain a copy of the License at
7
+
*
8
+
* https://www.apache.org/licenses/LICENSE-2.0
9
+
*
10
+
* Unless required by applicable law or agreed to in writing, software
11
+
* distributed under the License is distributed on an "AS IS" BASIS,
12
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+
* See the License for the specific language governing permissions and
14
+
* limitations under the License.
15
+
*/
16
+
17
+
/*
18
+
* This file contains constants for values that where replaced/removed from
19
+
* Semantic Conventions long enough ago that they do not have `ATTR_*`
20
+
* constants in the `@opentelemetry/semantic-conventions` package. Eventually
21
+
* it is expected that this instrumention will be updated to emit telemetry
22
+
* using modern Semantic Conventions, dropping the need for the constants in
23
+
* this file.
24
+
*/
25
+
26
+
/**
27
+
* The execution ID of the current function execution.
28
+
*
29
+
* @deprecated Use ATTR_FAAS_INVOCATION_ID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).
* The unique ID of the single function that this runtime instance executes.
35
+
*
36
+
* Note: Depending on the cloud provider, use:
37
+
38
+
* **AWS Lambda:** The function [ARN](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html).
39
+
Take care not to use the "invoked ARN" directly but replace any
40
+
[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
41
+
different aliases.
42
+
* **GCP:** The [URI of the resource](https://cloud.google.com/iam/docs/full-resource-names)
43
+
* **Azure:** The [Fully Qualified Resource ID](https://docs.microsoft.com/en-us/rest/api/resources/resources/get-by-id).
44
+
45
+
On some providers, it may not be possible to determine the full ID at startup,
46
+
which is why this field cannot be made required. For example, on AWS the account ID
47
+
part of the ARN is not available without calling another AWS API
48
+
which may be deemed too slow for a short-running lambda function.
49
+
As an alternative, consider setting `faas.id` as a span attribute instead.
50
+
*
51
+
* @deprecated Use ATTR_CLOUD_RESOURCE_ID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).
0 commit comments