Commit 8e9513b
committed
feat(instrumentation-aws-lambda): remove callback-based handler support
BREAKING CHANGE: Removed support for callback-based Lambda handlers.
Only Promise-based handlers (async/await or functions returning Promises)
are now supported. This aligns with AWS Lambda's deprecation of callbacks
in Node.js 24 runtime.
Changes:
- Removed Callback import and _wrapCallback method from instrumentation
- Updated patchedHandler to only accept (event, context) parameters
- Converted all test handlers from callback-based to Promise-based
- Updated all tests to use Promise-based handlers directly
- Added migration guide in README.md
- Documented breaking change in CHANGELOG.md
All 50 tests passing.1 parent cf80246 commit 8e9513b
File tree
6 files changed
+72
-235
lines changed- packages/instrumentation-aws-lambda
- src
- test
- integrations
- lambda-test
6 files changed
+72
-235
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
4 | 10 | | |
5 | 11 | | |
6 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
26 | 45 | | |
27 | 46 | | |
28 | 47 | | |
| |||
Lines changed: 7 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
| |||
277 | 276 | | |
278 | 277 | | |
279 | 278 | | |
280 | | - | |
281 | | - | |
| 279 | + | |
282 | 280 | | |
283 | 281 | | |
284 | 282 | | |
| |||
294 | 292 | | |
295 | 293 | | |
296 | 294 | | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
| 295 | + | |
| 296 | + | |
302 | 297 | | |
303 | | - | |
| 298 | + | |
304 | 299 | | |
305 | 300 | | |
306 | | - | |
| 301 | + | |
307 | 302 | | |
308 | 303 | | |
309 | 304 | | |
| |||
440 | 435 | | |
441 | 436 | | |
442 | 437 | | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | 438 | | |
457 | 439 | | |
458 | 440 | | |
| |||
482 | 464 | | |
483 | 465 | | |
484 | 466 | | |
485 | | - | |
| 467 | + | |
486 | 468 | | |
487 | 469 | | |
488 | 470 | | |
489 | 471 | | |
490 | 472 | | |
491 | 473 | | |
492 | | - | |
| 474 | + | |
493 | 475 | | |
494 | 476 | | |
495 | 477 | | |
| |||
Lines changed: 5 additions & 56 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
| 103 | + | |
116 | 104 | | |
117 | 105 | | |
118 | 106 | | |
| |||
133 | 121 | | |
134 | 122 | | |
135 | 123 | | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
| 124 | + | |
149 | 125 | | |
150 | 126 | | |
151 | 127 | | |
| |||
165 | 141 | | |
166 | 142 | | |
167 | 143 | | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
| 144 | + | |
181 | 145 | | |
182 | 146 | | |
183 | 147 | | |
184 | 148 | | |
185 | | - | |
| 149 | + | |
186 | 150 | | |
187 | 151 | | |
188 | 152 | | |
| |||
216 | 180 | | |
217 | 181 | | |
218 | 182 | | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
| 183 | + | |
234 | 184 | | |
235 | 185 | | |
236 | 186 | | |
237 | | - | |
238 | 187 | | |
239 | 188 | | |
0 commit comments