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
The extension enriches telemetry data with additional attributes beyond what the auto-instrumentation provides.
104
+
105
+
### Span Attributes
106
+
107
+
The following attributes are added to spans by the extension (if relevant):
108
+
109
+
| Attribute | Type | Description |
110
+
|---|---|---|
111
+
|`faas.invocation_id`| string | The AWS request ID of the current invocation. |
112
+
|`faas.trigger`| string | The event source that triggered the Lambda (e.g., `aws:sqs`, `aws:dynamodb`, `aws:event_bridge`). Extracted from the event payload. |
113
+
|`faas.init_duration`| double | The cold start initialization duration in milliseconds. Only present on cold start invocations. |
114
+
|`dash0.faas.record_count`| int | The number of records in a batch event (SQS, DynamoDB Streams, Kinesis, SNS). |
115
+
|`dash0.faas.trigger_arn`| string | The ARN of the event source (e.g., SQS queue ARN, DynamoDB stream ARN, SNS topic ARN). |
116
+
|`dash0.faas.event_bridge_source`| string | The `source` field from an EventBridge event. |
117
+
|`dash0.faas.event_bridge_detail_type`| string | The `detail-type` field from an EventBridge event. |
118
+
119
+
#### Resource Attributes (Spans)
120
+
121
+
These attributes are added to the resource of span data:
122
+
123
+
| Attribute | Type | Description |
124
+
|---|---|---|
125
+
|`service.name`| string | The service name, from `OTEL_SERVICE_NAME` or defaults to `unknown_service`. |
126
+
|`process.environment_variable.<KEY>`| string | Lambda environment variables (with sensitive values masked). Added to the span resource. |
127
+
128
+
### Log Attributes
129
+
130
+
The following attributes are added to log records by the extension (if relevant):
131
+
132
+
| Attribute | Type | Description |
133
+
|---|---|---|
134
+
|`faas.invocation_id`| string | The AWS request ID, used to correlate logs with the invocation span. |
135
+
|`dash0.faas.payload_type`| string | The type of payload log record. Values: `lambda_event`, `lambda_return_value`, `http_request_body`, `http_response_body`. Only present on payload log records. |
136
+
137
+
#### Resource Attributes (Logs)
138
+
139
+
These attributes are added to the resource of log data:
140
+
141
+
| Attribute | Type | Description |
142
+
|---|---|---|
143
+
|`cloud.platform`| string | Always set to `aws_lambda`. |
144
+
|`cloud.resource.id`| string | The full ARN of the Lambda function. |
145
+
|`cloud.account.id`| string | The AWS account ID. |
146
+
|`service.name`| string | The service name, from `OTEL_SERVICE_NAME` or defaults to `unknown_service`. |
147
+
148
+
### Metrics
149
+
150
+
The extension creates the following histogram metrics for each Lambda invocation:
151
+
152
+
| Metric | Unit | Description |
153
+
|---|---|---|
154
+
|`faas.duration`| ms | Duration of the invocation. |
155
+
|`faas.init_duration`| ms | Duration of the cold start initialization. Only present on cold start invocations. |
156
+
|`dash0.faas.billed_duration`| ms | Billed duration of the invocation. |
157
+
|`dash0.faas.memory_used`| MB | Memory used by the invocation. |
158
+
159
+
#### Metric Attributes
160
+
161
+
The following attributes are added to each metric data point:
162
+
163
+
| Attribute | Type | Description |
164
+
|---|---|---|
165
+
|`cloud.resource_id`| string | The full ARN of the Lambda function. |
166
+
|`cloud.account.id`| string | The AWS account ID. |
167
+
168
+
#### Resource Attributes (Metrics)
169
+
170
+
These attributes are added to the resource of metric data:
171
+
172
+
| Attribute | Type | Description |
173
+
|---|---|---|
174
+
|`service.name`| string | The service name, from `OTEL_SERVICE_NAME` or defaults to `unknown_service`. |
175
+
176
+
101
177
## Dockerized Lambdas
102
178
103
179
For containerized Lambda functions, use the provided Docker images in a multi-stage build. The extension images are available for Node.js, Python, and Java runtimes.
0 commit comments