Skip to content

Commit

Permalink
Add detail for GCP Cloud Run Job version
Browse files Browse the repository at this point in the history
  • Loading branch information
damemi committed Apr 10, 2023
1 parent feb4dac commit 5b37817
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
11 changes: 9 additions & 2 deletions semantic_conventions/resource/faas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,15 @@ groups:
* **AWS Lambda:** The [function version](https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html)
(an integer represented as a decimal string).
* **Google Cloud Run:** The [revision](https://cloud.google.com/run/docs/managing/revisions)
(i.e., the function name plus the revision suffix).
* **Google Cloud Run:**
* **Services:** The
[revision](https://cloud.google.com/run/docs/managing/revisions) (i.e.,
the function name plus the revision suffix).
* **Jobs:** The
[execution](https://cloud.google.com/run/docs/managing/job-executions) and
[task
index](https://cloud.google.com/run/docs/container-contract#jobs-env-vars),
eg `execution/0`.
* **Google Cloud Functions:** The value of the
[`K_REVISION` environment variable](https://cloud.google.com/functions/docs/env-var#runtime_environment_variables_set_automatically).
* **Azure Functions:** Not applicable. Do not set this attribute.
Expand Down
11 changes: 9 additions & 2 deletions specification/resource/semantic_conventions/faas.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,15 @@ definition of function name MUST be used for this attribute

* **AWS Lambda:** The [function version](https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html)
(an integer represented as a decimal string).
* **Google Cloud Run:** The [revision](https://cloud.google.com/run/docs/managing/revisions)
(i.e., the function name plus the revision suffix).
* **Google Cloud Run:**
* **Services:** The
[revision](https://cloud.google.com/run/docs/managing/revisions) (i.e.,
the function name plus the revision suffix).
* **Jobs:** The
[execution](https://cloud.google.com/run/docs/managing/job-executions) and
[task
index](https://cloud.google.com/run/docs/container-contract#jobs-env-vars),
eg `execution/0`.
* **Google Cloud Functions:** The value of the
[`K_REVISION` environment variable](https://cloud.google.com/functions/docs/env-var#runtime_environment_variables_set_automatically).
* **Azure Functions:** Not applicable. Do not set this attribute.
Expand Down

0 comments on commit 5b37817

Please sign in to comment.