Skip to content

Commit f2023d4

Browse files
committed
Set role with entity
1 parent 15f7a6b commit f2023d4

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

docs/registry/entities/faas.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,18 +77,20 @@ The following well-known definitions MUST be used if you set this attribute and
7777

7878
**Description:** A serverless instance.
7979

80-
**Other Attributes:**
81-
82-
> :warning: This entity definition contains attributes without a role.
83-
> Stable Entities MUST NOT have attributes without a defined role.
80+
**Identifying Attributes:**
8481

8582
| Attribute | Type | Description | Examples | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Stability |
8683
|---|---|---|---|---|---|
8784
| [`faas.instance.id`](/docs/registry/attributes/faas.md) | string | The execution environment ID as a string, that will be potentially reused for other invocations to the same function/function version. [4] | `2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de` | `Recommended` | ![Development](https://img.shields.io/badge/-development-blue) |
88-
| [`faas.max_memory`](/docs/registry/attributes/faas.md) | int | The amount of memory available to the serverless function converted to Bytes. [5] | `134217728` | `Recommended` | ![Development](https://img.shields.io/badge/-development-blue) |
8985

9086
**[4] `faas.instance.id`:** - **AWS Lambda:** Use the (full) log stream name.
9187

88+
**Descriptive Attributes:**
89+
90+
| Attribute | Type | Description | Examples | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Stability |
91+
|---|---|---|---|---|---|
92+
| [`faas.max_memory`](/docs/registry/attributes/faas.md) | int | The amount of memory available to the serverless function converted to Bytes. [5] | `134217728` | `Recommended` | ![Development](https://img.shields.io/badge/-development-blue) |
93+
9294
**[5] `faas.max_memory`:** It's recommended to set this attribute since e.g. too little memory can easily stop a Java AWS Lambda function from working correctly. On AWS Lambda, the environment variable `AWS_LAMBDA_FUNCTION_MEMORY_SIZE` provides this information (which must be multiplied by 1,048,576).
9395

9496

model/faas/entities.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ groups:
1818
A serverless instance.
1919
attributes:
2020
- ref: faas.instance.id
21+
role: identifying
2122
- ref: faas.max_memory
23+
role: descriptive

0 commit comments

Comments
 (0)