Skip to content

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

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

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

Conversation

@dependabot
Copy link
Copy Markdown
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
Copy Markdown
Contributor

This PR is raised by Dependabot to update a dependency.

Copy link
Copy Markdown

@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:17
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/aws-lambda-powertools/logger-2.31.0 branch from 26f0ab5 to 43f7fb3 Compare February 13, 2026 22:25
Copy link
Copy Markdown

@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

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/aws-lambda-powertools/logger-2.31.0 branch from 43f7fb3 to 939d4af Compare February 13, 2026 23:11
Copy link
Copy Markdown

@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

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/aws-lambda-powertools/logger-2.31.0 branch from 939d4af to b11a3d7 Compare February 13, 2026 23:44
Copy link
Copy Markdown

@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

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/aws-lambda-powertools/logger-2.31.0 branch from b11a3d7 to 682fb73 Compare February 14, 2026 00:15
Copy link
Copy Markdown

@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

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/aws-lambda-powertools/logger-2.31.0 branch from 682fb73 to 5217f26 Compare February 14, 2026 00:45
Copy link
Copy Markdown

@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

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/aws-lambda-powertools/logger-2.31.0 branch from 5217f26 to 010b324 Compare February 14, 2026 01:28
Copy link
Copy Markdown

@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

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/aws-lambda-powertools/logger-2.31.0 branch from 010b324 to 35b3068 Compare February 14, 2026 01:58
Copy link
Copy Markdown

@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

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/aws-lambda-powertools/logger-2.31.0 branch from 35b3068 to 3f0355e Compare February 14, 2026 02:29
Copy link
Copy Markdown

@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

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/aws-lambda-powertools/logger-2.31.0 branch from 3f0355e to 0078332 Compare February 14, 2026 02:58
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/aws-lambda-powertools/logger-2.31.0 branch from 0078332 to ec81fe5 Compare February 14, 2026 03:28
Copy link
Copy Markdown

@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

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 ec81fe5 to d8a3a01 Compare February 14, 2026 04:09
@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown

@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 merged commit 0a9a679 into main Feb 14, 2026
37 of 38 checks passed
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/aws-lambda-powertools/logger-2.31.0 branch February 14, 2026 09:35
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