Skip to content

3.2.2

Latest

Choose a tag to compare

@github-actions github-actions released this 25 May 14:28
8927008

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

This release was made possible by the following contributors:

@dependabot[bot], @hjgraca, @nCubed and dependabot[bot]