Skip to content

Upgrade: [dependabot] - bump @aws-lambda-powertools/logger from 2.30.2 to 2.31.0#568

Merged
eps-autoapprove-dependabot[bot] merged 1 commit intomainfrom
dependabot/npm_and_yarn/aws-lambda-powertools/logger-2.31.0
Feb 20, 2026
Merged

Upgrade: [dependabot] - bump @aws-lambda-powertools/logger from 2.30.2 to 2.31.0#568
eps-autoapprove-dependabot[bot] merged 1 commit intomainfrom
dependabot/npm_and_yarn/aws-lambda-powertools/logger-2.31.0

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 13, 2026

Bumps @aws-lambda-powertools/logger from 2.30.2 to 2.31.0.

Release notes

Sourced from @​aws-lambda-powertools/logger's releases.

v2.31.0

Summary

In this release we are pleased to announce Tracer middleware for the HTTP event handler, which allows users to enable distributed tracing for their HTTP routes with minimal boilerplate code.

In addition, the metric utility now supports a fluent interface, allowing you to chain multiple methods in a single statement.

We have also fixed a bug in the HTTP event handler that caused parameterized headers to be handled incorrectly.

⭐ Special thanks to @​nateiler and @​dothomson for their first PR merged in the project, and to @​arnabrahman! for another great contribution 🎉

Tracer Middleware

You can now use the Tracer utility with the HTTP event handler to gain observability over your routes. The middleware:

  • Creates a subsegment for each HTTP route with the format METHOD /path (e.g., GET /users)
  • Adds ColdStart and Service annotations
  • Optionally captures JSON response bodies as metadata
  • Captures errors as metadata when exceptions occur
import { Router } from '@aws-lambda-powertools/event-handler/http';
import { tracer as tracerMiddleware } from '@aws-lambda-powertools/event-handler/http/middleware/tracer';
import { Tracer } from '@aws-lambda-powertools/tracer';
import type { Context } from 'aws-lambda';
const tracer = new Tracer({ serviceName: 'my-api' });
const app = new Router();
app.get(
'/users/cards',
[tracerMiddleware(tracer, { captureResponse: false })],
({ params }) => {
return { id: params.id, secret: 'sensitive-data' };
}
);
export const handler = async (event: unknown, context: Context) =>
app.resolve(event, context);

Metrics Fluent Interface

All mutation methods (with the exception of clear*) now return the metric instance that was mutated, allowing you to chain multiple metrics operations in a single statement.

import { Metrics} from '@aws-lambda-powertools/metrics';
const metrics = new Metrics();
</tr></table>

... (truncated)

Changelog

Sourced from @​aws-lambda-powertools/logger's changelog.

2.31.0 (2026-02-10)

Features

  • metrics return metrics instance from metrics functions (#4930) (e7aa2e2)
  • parameters pass underlying SDK error as cause to GetParameterError (#4936) (b3499db)
  • event-handler add tracer middleware for HTTP routes (#4982) (8be6157)

Bug Fixes

  • event-handler handle set-cookie header values with multiple attributes (#4990) (42317fe)
  • kafka handle tombstone events (#4991) (04c3236)
Commits
  • 54d1fa3 chore(ci): bump version to 2.31.0 (#5007)
  • 42317fe fix(event-handler): handle set-cookie header values with multiple attributes ...
  • 8e4da8a chore(deps): bump @​types/node from 25.2.0 to 25.2.2 (#5004)
  • ddf54e0 chore(deps): bump github/codeql-action from 4.32.1 to 4.32.2 (#4998)
  • 7692071 chore(deps): bump @​types/node from 25.2.0 to 25.2.1 (#4999)
  • d8dfadc chore: manually upgrade dependency tree (#5002)
  • 60b6ce1 ci: switch npm auth to OIDC (#4997)
  • 04c3236 fix(kafka): handle tombstone events (#4991)
  • 8e1359e chore(deps): bump the aws-cdk group across 1 directory with 3 updates (#4985)
  • 4c6657a test: extract DF idempotency e2e tests (#4994)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Feb 13, 2026
@github-actions
Copy link
Contributor

This PR is raised by Dependabot to update a dependency.

Copy link

@eps-autoapprove-dependabot eps-autoapprove-dependabot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request because it includes a patch or minor update

@eps-autoapprove-dependabot eps-autoapprove-dependabot bot enabled auto-merge (squash) February 13, 2026 18:06
Bumps [@aws-lambda-powertools/logger](https://github.com/aws-powertools/powertools-lambda-typescript) from 2.30.2 to 2.31.0.
- [Release notes](https://github.com/aws-powertools/powertools-lambda-typescript/releases)
- [Changelog](https://github.com/aws-powertools/powertools-lambda-typescript/blob/main/CHANGELOG.md)
- [Commits](aws-powertools/powertools-lambda-typescript@v2.30.2...v2.31.0)

---
updated-dependencies:
- dependency-name: "@aws-lambda-powertools/logger"
  dependency-version: 2.31.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/aws-lambda-powertools/logger-2.31.0 branch from f09838e to f75c50e Compare February 20, 2026 09:51
@sonarqubecloud
Copy link

@eps-autoapprove-dependabot eps-autoapprove-dependabot bot merged commit d2e8188 into main Feb 20, 2026
11 checks passed
@eps-autoapprove-dependabot eps-autoapprove-dependabot bot deleted the dependabot/npm_and_yarn/aws-lambda-powertools/logger-2.31.0 branch February 20, 2026 09:54
Copy link

@eps-autoapprove-dependabot eps-autoapprove-dependabot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request because it includes a patch or minor update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants