You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(aws-serverless): Take http_proxy into account when choosing useLayerExtension default (#17817)
The default setting for `useLayerExtension` now considers the
`http_proxy` environment variable. When `http_proxy` is set,
`useLayerExtension` will be off by default. If you use a `http_proxy`
but would still like to make use of the Sentry Lambda extension, exempt
`localhost` in a `no_proxy` environment variable.
Fixes: #17804
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Disable `useLayerExtension` by default when `http_proxy` is set
(unless `no_proxy` exempts localhost), add debug warnings, tests, and
changelog entry.
>
> - **aws-serverless**:
> - Consider proxy env vars when defaulting `useLayerExtension` in
`packages/aws-serverless/src/init.ts`.
> - New `shouldDisableLayerExtensionForProxy()` checks `http_proxy` and
`no_proxy` (localhost exemptions).
> - Update default: enable only if using Lambda layer, no custom tunnel,
and no proxy interference.
> - Add debug warnings when disabling due to proxy and when tunneling
via extension.
> - **Tests**:
> - Expand `packages/aws-serverless/test/init.test.ts` to cover
proxy/no_proxy scenarios, explicit overrides, and env cleanup.
> - **Docs/Changelog**:
> - Add Important Changes note explaining new default behavior and how
to re-enable with `no_proxy` exemptions.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
53e333f. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
The default setting for `useLayerExtension` now considers the `http_proxy` environment variable. When `http_proxy` is set, `useLayerExtension` will be off by default. If you use a `http_proxy` but would still like to make use of the Sentry Lambda extension, exempt `localhost` in a `no_proxy` environment variable.
13
+
7
14
## 10.16.0
8
15
9
16
- feat(logs): Add internal `replay_is_buffering` flag ([#17752](https://github.com/getsentry/sentry-javascript/pull/17752))
0 commit comments