Commit e3325fc
authored
fix(lambda): bump the aws-powertools group in /lambdas with 4 updates (#5044)
Bumps the aws-powertools group in /lambdas with 4 updates:
[@aws-lambda-powertools/parameters](https://github.com/aws-powertools/powertools-lambda-typescript),
[@aws-lambda-powertools/logger](https://github.com/aws-powertools/powertools-lambda-typescript),
[@aws-lambda-powertools/metrics](https://github.com/aws-powertools/powertools-lambda-typescript)
and
[@aws-lambda-powertools/tracer](https://github.com/aws-powertools/powertools-lambda-typescript).
Updates `@aws-lambda-powertools/parameters` 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/parameters</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/parameters</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 />
Updates `@aws-lambda-powertools/logger` 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 />
Updates `@aws-lambda-powertools/metrics` 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/metrics</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/metrics</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 />
Updates `@aws-lambda-powertools/tracer` 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/tracer</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/tracer</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 />
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 <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions
</details>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>1 parent 1e798b1 commit e3325fc
File tree
3 files changed
+33
-33
lines changed- lambdas
- functions/control-plane
- libs/aws-powertools-util
3 files changed
+33
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | | - | |
123 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
237 | | - | |
238 | | - | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
| 241 | + | |
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
246 | | - | |
247 | | - | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
248 | 248 | | |
249 | | - | |
| 249 | + | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
| 252 | + | |
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
| 259 | + | |
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
264 | | - | |
265 | | - | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
266 | 266 | | |
267 | | - | |
| 267 | + | |
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
| 274 | + | |
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
279 | | - | |
280 | | - | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
281 | 281 | | |
282 | | - | |
| 282 | + | |
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
| 303 | + | |
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | | - | |
308 | | - | |
309 | | - | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
310 | 310 | | |
311 | | - | |
| 311 | + | |
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
318 | | - | |
| 318 | + | |
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
| |||
0 commit comments