Commit e98f312
authored
Upgrade: [dependabot] - bump @aws-lambda-powertools/logger from 2.30.2 to 2.31.0 (#702)
Bumps
[@aws-lambda-powertools/logger](https://github.com/aws-powertools/powertools-lambda-typescript)
from 2.30.2 to 2.31.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/aws-powertools/powertools-lambda-typescript/releases"><code>@aws-lambda-powertools/logger</code>'s
releases</a>.</em></p>
<blockquote>
<h2>v2.31.0</h2>
<h2>Summary</h2>
<p>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.</p>
<p>In addition, the metric utility now supports a fluent interface,
allowing you to chain multiple methods in a single statement.</p>
<p>We have also fixed a bug in the HTTP event handler that caused
parameterized headers to be handled incorrectly.</p>
<p>⭐ Special thanks to <a
href="https://github.com/nateiler"><code>@nateiler</code></a> and <a
href="https://github.com/dothomson"><code>@dothomson</code></a> for
their first PR merged in the project, and to <a
href="https://github.com/arnabrahman"><code>@arnabrahman</code></a>!
for another great contribution 🎉</p>
<h2>Tracer Middleware</h2>
<p>You can now use the Tracer utility with the HTTP event handler to
gain observability over your routes. The middleware:</p>
<ul>
<li>Creates a subsegment for each HTTP route with the format
<code>METHOD /path</code> (e.g., <code>GET /users</code>)</li>
<li>Adds <code>ColdStart</code> and <code>Service</code>
annotations</li>
<li>Optionally captures JSON response bodies as metadata</li>
<li>Captures errors as metadata when exceptions occur</li>
</ul>
<pre lang="ts"><code>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';
<p>const tracer = new Tracer({ serviceName: 'my-api' });
const app = new Router();</p>
<p>app.get(
'/users/cards',
[tracerMiddleware(tracer, { captureResponse: false })],
({ params }) => {
return { id: params.id, secret: 'sensitive-data' };
}
);</p>
<p>export const handler = async (event: unknown, context: Context) =>
app.resolve(event, context);
</code></pre></p>
<h2>Metrics Fluent Interface</h2>
<p>All mutation methods (with the exception of <code>clear*</code>) now
return the metric instance that was mutated, allowing you to chain
multiple metrics operations in a single statement.</p>
<pre lang="ts"><code>import { Metrics} from
'@aws-lambda-powertools/metrics';
<p>const metrics = new Metrics();</p>
<p></tr></table>
</code></pre></p>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/aws-powertools/powertools-lambda-typescript/blob/main/CHANGELOG.md"><code>@aws-lambda-powertools/logger</code>'s
changelog</a>.</em></p>
<blockquote>
<h2><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.30.2...v2.31.0">2.31.0</a>
(2026-02-10)</h2>
<h3>Features</h3>
<ul>
<li><strong>metrics</strong> return metrics instance from metrics
functions (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4930">#4930</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/e7aa2e2b5efbdca197602ef5611ac14e58519d6b">e7aa2e2</a>)</li>
<li><strong>parameters</strong> pass underlying SDK error as cause to
<code>GetParameterError</code> (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4936">#4936</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/b3499dbfe29adc8f7fa07e5b8f3b4718e4525fa7">b3499db</a>)</li>
<li><strong>event-handler</strong> add tracer middleware for HTTP routes
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4982">#4982</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/8be61577451c32fdea2db8bcb93f8acba9e44423">8be6157</a>)</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li><strong>event-handler</strong> handle set-cookie header values with
multiple attributes (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4990">#4990</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/42317fe15b90536fab40c15a70f967faf116011a">42317fe</a>)</li>
<li><strong>kafka</strong> handle tombstone events (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4991">#4991</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/04c32360c972aff984c69cce3eae6e95007e79b7">04c3236</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/54d1fa3b290684ec987854b8266eac5094f4c178"><code>54d1fa3</code></a>
chore(ci): bump version to 2.31.0 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5007">#5007</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/42317fe15b90536fab40c15a70f967faf116011a"><code>42317fe</code></a>
fix(event-handler): handle set-cookie header values with multiple
attributes ...</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/8e4da8a4ce4b7c57de14be04baf84444ee89f8c7"><code>8e4da8a</code></a>
chore(deps): bump <code>@types/node</code> from 25.2.0 to 25.2.2 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5004">#5004</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/ddf54e09ec0c61a803b4d9f8edecd62ccc374555"><code>ddf54e0</code></a>
chore(deps): bump github/codeql-action from 4.32.1 to 4.32.2 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4998">#4998</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/769207180080d45a72f8aca332c200239d3be06e"><code>7692071</code></a>
chore(deps): bump <code>@types/node</code> from 25.2.0 to 25.2.1 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4999">#4999</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/d8dfadc63a59e0445b23a98eae9f9cd26fdb2e14"><code>d8dfadc</code></a>
chore: manually upgrade dependency tree (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5002">#5002</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/60b6ce1b2c93346cccd0b7a1c43020934037b5c7"><code>60b6ce1</code></a>
ci: switch npm auth to OIDC (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4997">#4997</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/04c32360c972aff984c69cce3eae6e95007e79b7"><code>04c3236</code></a>
fix(kafka): handle tombstone events (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4991">#4991</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/8e1359e1954f65215fe5c1884e4f0479eda95508"><code>8e1359e</code></a>
chore(deps): bump the aws-cdk group across 1 directory with 3 updates
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4985">#4985</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/4c6657aee26e501dde0211da0810e52b441c5913"><code>4c6657a</code></a>
test: extract DF idempotency e2e tests (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4994">#4994</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.30.2...v2.31.0">compare
view</a></li>
</ul>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
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-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
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)
</details>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>1 parent 4e847b6 commit e98f312
2 files changed
Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments