Summary
In this release we fixed a bug where setting POWERTOOLS_LOG_LEVEL=Trace or POWERTOOLS_LOG_LEVEL=Debug was silently ignored — Trace and Debug calls never emitted output. We also fixed a graceful fallback when LambdaTraceProvider is unavailable, preventing TypeLoadException in environments where the tracing assembly cannot be loaded.
Thank you @nCubed for reporting issue #1205 ⭐
What's Fixed
🐛 POWERTOOLS_LOG_LEVEL=Trace/Debug Now Works
| Docs
Fixed a bug where setting POWERTOOLS_LOG_LEVEL to Trace or Debug had no effect — only Information and above would emit. The root cause was that the Microsoft.Extensions.Logging factory's default minimum level (Information) was filtering messages before they reached the Powertools provider, which correctly handled the environment variable.
Before:
Level Expected Observed
Trace All levels Information and above only ❌
Debug Debug+ Information and above only ❌
Information Info+ Info+ ✓
Warning Warning+ Warning+ ✓
After:
Level Expected Observed
Trace All levels All levels ✓
Debug Debug+ Debug+ ✓
Information Info+ Info+ ✓
Warning Warning+ Warning+ ✓
🐛 Graceful Fallback When LambdaTraceProvider Is Unavailable
Fixed a TypeLoadException that could occur in environments where the Lambda tracing assembly cannot be loaded. The library now gracefully falls back instead of crashing.
Changes
📜 Documentation updates
- docs(logging): extract inline code examples into snippet files (#1199) by @hjgraca
- docs(kafka): extract inline code examples into snippet files (#1198) by @hjgraca
- docs(parameters): extract inline code examples into snippet files (#1197) by @hjgraca
- docs(metrics): extract inline code examples into snippet files (#1196) by @hjgraca
- docs(bedrock-agent-function): extract inline code examples into snippet files (#1195) by @hjgraca
- docs(appsync-events): extract inline code examples into snippet files (#1194) by @hjgraca
- docs(tracing): extract inline code examples into snippet files (#1193) by @hjgraca
- docs(jmespath-functions): extract inline code examples into snippet files (#1192) by @hjgraca
- docs(metadata): extract inline code examples into snippet files (#1191) by @hjgraca
🐛 Bug and hot fixes
- fix(logging): POWERTOOLS_LOG_LEVEL=Trace/Debug no longer ignored (#1213) by @hjgraca
- fix(common): graceful fallback when LambdaTraceProvider is unavailable (#1176) by @hjgraca
🔧 Maintenance
- chore: Bump version from 3.2.1 to 3.2.2 (#1219) by @hjgraca
- chore(deps): bump aws-actions/configure-aws-credentials from 6.1.0 to 6.1.1 (#1210) by @dependabot[bot]
- chore(deps): bump release-drafter/release-drafter from 7.2.1 to 7.3.0 (#1211) by @dependabot[bot]
- chore(deps): bump idna from 3.10 to 3.15 (#1214) by @dependabot[bot]
- chore(deps): bump pymdown-extensions from 10.16.1 to 10.21.3 (#1215) by @dependabot[bot]
- chore(deps): bump codecov/codecov-action from 6.0.0 to 6.0.1 (#1216) by @dependabot[bot]
- chore(deps): bump github/codeql-action from 4.35.2 to 4.35.5 (#1217) by @dependabot[bot]
- chore(deps): bump gitpython from 3.1.44 to 3.1.50 in /docs (#1209) by @dependabot[bot]
- chore(deps): bump gitpython from 3.1.44 to 3.1.50 (#1208) by @dependabot[bot]
- chore(deps): bump the aws-cdk group across 1 directory with 2 updates (#1204) by @dependabot[bot]
- chore(deps): bump release-drafter/release-drafter from 7.2.0 to 7.2.1 (#1203) by @dependabot[bot]
- chore(deps): bump peter-evans/create-pull-request from 8.1.0 to 8.1.1 (#1181) by @dependabot[bot]
- chore(deps): bump aws-actions/configure-aws-credentials from 6.0.0 to 6.1.0 (#1180) by @dependabot[bot]
- chore(deps): bump github/codeql-action from 4.35.1 to 4.35.2 (#1179) by @dependabot[bot]
- chore(deps): bump actions/upload-artifact from 7.0.0 to 7.0.1 (#1178) by @dependabot[bot]
- chore(deps): bump actions/setup-node from 6.3.0 to 6.4.0 (#1200) by @dependabot[bot]
- chore(deps): bump codecov/codecov-action from 5.5.2 to 6.0.0 (#1165) by @dependabot[bot]
- chore(deps): bump brace-expansion in /examples/Event Handler/BedrockAgentFunction/infra (#1167) by @dependabot[bot]
- chore(deps): bump pygments from 2.19.1 to 2.20.0 (#1168) by @dependabot[bot]
- chore(deps): bump squidfunk/mkdocs-material from
8f41b60to868ad4din /docs (#1169) by @dependabot[bot] - chore(deps): bump the aws-cdk group across 1 directory with 2 updates (#1170) by @dependabot[bot]
- chore(deps): bump zgosalvez/github-actions-ensure-sha-pinned-actions from 5.0.3 to 5.0.4 (#1171) by @dependabot[bot]
- chore(deps): bump yaml and aws-cdk-lib in /examples/Event Handler/BedrockAgentFunction/infra (#1177) by @dependabot[bot]
- chore(deps): bump github/codeql-action from 4.32.6 to 4.35.1 (#1172) by @dependabot[bot]
- chore(deps): bump release-drafter/release-drafter from 7.1.1 to 7.2.0 (#1174) by @dependabot[bot]
- chore(deps): bump actions/github-script from 8.0.0 to 9.0.0 (#1175) by @dependabot[bot]
- chore(deps-dev): bump picomatch from 2.3.1 to 2.3.2 in /examples/Event Handler/BedrockAgentFunction/infra (#1164) by @dependabot[bot]
- chore(deps): bump zgosalvez/github-actions-ensure-sha-pinned-actions from 5.0.0 to 5.0.3 (#1163) by @dependabot[bot]
- chore(deps): bump release-drafter/release-drafter from 6.3.0 to 7.1.1 (#1162) by @dependabot[bot]
- chore(deps): bump aws-powertools/actions from 1.5.0 to 1.5.1 (#1161) by @dependabot[bot]
- chore(deps): bump actions/setup-dotnet from 5.1.0 to 5.2.0 (#1155) by @dependabot[bot]
- chore(deps): bump actions/download-artifact from 8.0.0 to 8.0.1 (#1153) by @dependabot[bot]
This release was made possible by the following contributors:
@dependabot[bot], @hjgraca, @nCubed and dependabot[bot]