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
feat: configurable OTEL layer with architecture and version support (BREAKING) (#26)
BREAKING CHANGES:
- OpenTelemetry layer is now disabled by default (was enabled by default)
- Added new required properties: Architecture and OtelLayerVersion
Features:
- Add Architecture property with default "amd64" (supports arm64)
- Add OtelLayerVersion property with default "0-117-0" (latest version)
- Support configurable OTEL layer ARN format with architecture and version
- Update all tests to reflect new defaults
- Update testing helpers and builders with new properties
Documentation:
- Update CLAUDE.md, README.md, and docs/constructs/lambda-function.md
- Add migration guide and breaking change warnings
- Add examples showing new OTEL configuration
Version:
- Bump version to 2.0.0-beta for breaking changes
- Update CDK dependency to 2.209.1
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-authored-by: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/constructs/lambda-function.md
+28-6Lines changed: 28 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
# Lambda Function Construct
2
2
3
-
The `LambdaFunctionConstruct` provides a comprehensive, production-ready Lambda function with integrated OpenTelemetry support, IAM management, and environment configuration.
3
+
The `LambdaFunctionConstruct` provides a comprehensive, production-ready Lambda function with configurable OpenTelemetry support, IAM management, and environment configuration.
OtelLayerVersion="0-117-0"// Specify OTEL layer version
161
+
});
162
+
```
163
+
164
+
!!! warning "Breaking Change in v2.0.0"
165
+
Starting with version 2.0.0, the OpenTelemetry layer is **disabled by default**. You must explicitly set `IncludeOtelLayer = true` to enable it. This change allows for better control over observability costs and layer dependencies.
166
+
145
167
## Public Properties
146
168
147
169
### LambdaFunction
@@ -175,9 +197,9 @@ The Lambda functions use the following runtime configuration:
175
197
!!! info "Runtime Details"
176
198
- **Runtime**: `PROVIDED_AL2023` (Amazon Linux 2023)
0 commit comments