AWS Lambda functions monitored with classic OneAgent layers should be updated to the latest generation monitoring layer to take full advantage of Dynatrace’s enhanced observability capabilities.
To migrate AWS Lambda functions currently monitored with classic OneAgent layers
DT
or the dtconfig.json
file).Alternatively, you can reuse the configuration created for the classic AWS Lambda layer with the following adaptations that make the latest generation of Dynatrace AWS Lambda monitoring backward-compatible.
DT_CLUSTER_ID
to DT_CLUSTER
.disabled
by doing one of the following:
DT_OPEN_TELEMETRY_ENABLE_INTEGRATION
OpenTelemetry.EnableIntegration
from the dtconfig.json
file.Once these adaptations are complete, remove the classic layer and add the latest generation layer. Ensure that the selected layer matches the correct architecture and be aware of differences in system requirements and available features.
The tables below compare key features and performance metrics between the classic and latest AWS Lambda implementations.
Feature | AWS Lambda (classic) | AWS Lambda (latest) |
---|---|---|
Supported sensors | Few built-in | Many built-in |
Cold start invocation overhead (typical) | <4000ms | <1500ms |
Warm start invocation overhead (typical) | 70–80ms | 60ms |
Response time overhead (typical) | 20ms | <5ms |
Log enrichment | Manual | Automatic for supported frameworks, structured logs |
Layer size for traces-only layer | <10MB | >15MB depending on OneAgent |
Token stored in Secret Manager | Supported for non-SnapStart | Supported |
OpenTelemetry integration | Supported | Supported |
Code base | Based on OpenTelemetry SDK | OneAgent |
Runtime | Feature | AWS Lambda (classic) | AWS Lambda (latest) |
---|---|---|---|
Java | Minimum memory | 1500MB | 128MB |
Handler function definition | In class | In class or base class | |
Supported runtimes | 8, 11, 17, 21 | 11, 17, 21 | |
SnapStart | Supported | Supported | |
Node.js | Module type | CommonJS | CommonJS |
Supported runtimes | 16, 18, 20, 22 | 20, 22 | |
Python | Supported runtimes | 3.9, 3.10, 3.11, 3.12, 3.13 | 3.9, 3.10, 3.11, 3.12, 3.13 |