-
-
Notifications
You must be signed in to change notification settings - Fork 376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version 6 #1125
Comments
Hi @willfarrell - would like to learn more about the OTel/Powertools points in the list above. On our side we’ve been looking at OTel closely and for now we have decided to not move forward because the performance impact, especially on cold starts, is still too big. At least for now, that’s something we won’t be doing at least until 2025, which would be v7 for you. Curious to hear if you’ve arrived at different conclusions |
Same, along with OTel was listed for v5, but sounds like it's still not ready for production yet. The idea is to deprecate our logging/cloudwatch middlewares for Powertools using OTel, whenever it's ready. The switch to Otel is the only big change on the horizon for Middy currently. |
Might be worthwhile improving middleware types #1221 (comment) |
middy currently throws exceptions dependent on whether the event/onError handler returns a response that is 'undefined'. However, void/undefined is a legitimate value for many Lambdas (indeed the default handler definition is for a return value of Whilst the invocation source of the Lambda should discard any received response the docs currently state ' In my case (EventBridge Rule target), I wanted to send some errors immediately to a DLQ, as Lambda retry wouldn't have been meaningful. I found that |
Why wait for OTEL logging? OTEL is not all or nothing; the three parts are separable. Being able to leverage OTEL metrics and/or traces would be helpful. For example, prometheus can now receive OTLP metrics directly. See exporter-metrics-otlp-http. The modular OTEL producer/reader/exporter design is very flexible. |
6.0.0-alpha.0 is now released. You can preview the release notes at https://github.com/middyjs/middy/blob/release/6.0.0/website/docs/upgrade/5-6.md |
aka The OTel Update (Hopefully)
Release: Nov (after nodejs active LTS starts)
Timeline based on AWS nodejs22.x release cycle
Release Notes: https://github.com/middyjs/middy/blob/release/6.0.0/website/docs/upgrade/5-6.md
Planned
engines
to"node": ">=20"
node-version
--experimental-require-module
support Support CommonJS (again) #1233core
response
isundefined
#1236http-response-serializer
event.requiredContentType
s3-object-response
aws-xray-sdk-fetch
, deprecateawsClientCapture
option forcaptureFetchGlobal()
http-cors
Change defaultorigin:null
http-urlencode-body-parser
deprecate use ofqs
for native solutionvalidator
upgradeajv-formats
to v3 (https://github.com/ajv-validator/ajv-formats/releases/tag/v3.0.0-rc.0)node:test
Moved to v17
error-logger
update to print otel by defaultinput-output-logger
update to print in otel formatMaybe
The text was updated successfully, but these errors were encountered: