Commit d2a195e
authored
feat: lambda support for DSM (#622)
* removed current dsm implementation
* new dsm lambda implementation
* check env variable in proper way
* add tests
* add more detailed comment to function
* fixed lint for tests
* remove not needed tests
* fix
* error handling
* fix
* some fixes
* renamed to extract_context_with_datastreams
* changed to explicit check of dsm context
* move dsm tests to test_tracing.py
* add wanted tests
* caught sns -> sqs bug
* revert back to original tracing.py implementation
* fix lint
* revert spacing stuff to original
* remove unneccessary checks, still set checkpoints even when dsm context fails to be propagated
* remove not needed comment
* fixes
* lambda functions not allowed by lint
* use lambda function, add checks before checkpoint
* remove unneccesary import
* move if statement with least work first
* changed function name to original, arn exception handle w test, return None instead of {}
* some fixes
* remove comments that are not needed
* fix
* fix
* extra check
* remove unneccesary work associated with event_source
* fix lint
* add tests for empty arn logic
* more descriptive name
* fix lint
* fix
* moved arn check to checkpoint, remove comments, add variable dec
* kinesis fix, tests fix
* remove not needed test
* formatting fix
* made tests clearer and more comprehensive
* fix
* made comments more obvious on point of tests
* update toml file
* edit build make more sense
* made sure tests match with table
* fix
* removed not needed comments
* addc comment
* add some more kinesis tests
* add logger check in exception test cases
* fix comment
* fix
* updated tests to use inner checkpoint check, keep build at <4
* fix
* change to 3.10.21 parent ae7df53 commit d2a195e
File tree
7 files changed
+976
-221
lines changed- datadog_lambda
- tests
7 files changed
+976
-221
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
70 | 88 | | |
71 | 89 | | |
72 | 90 | | |
| |||
202 | 220 | | |
203 | 221 | | |
204 | 222 | | |
205 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
206 | 226 | | |
207 | 227 | | |
208 | 228 | | |
| |||
214 | 234 | | |
215 | 235 | | |
216 | 236 | | |
| 237 | + | |
217 | 238 | | |
| 239 | + | |
| 240 | + | |
218 | 241 | | |
219 | 242 | | |
220 | 243 | | |
| |||
226 | 249 | | |
227 | 250 | | |
228 | 251 | | |
| 252 | + | |
229 | 253 | | |
230 | 254 | | |
231 | 255 | | |
| |||
241 | 265 | | |
242 | 266 | | |
243 | 267 | | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
244 | 271 | | |
245 | 272 | | |
246 | 273 | | |
| |||
272 | 299 | | |
273 | 300 | | |
274 | 301 | | |
275 | | - | |
276 | | - | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
277 | 305 | | |
278 | 306 | | |
279 | 307 | | |
| |||
296 | 324 | | |
297 | 325 | | |
298 | 326 | | |
| 327 | + | |
| 328 | + | |
299 | 329 | | |
300 | 330 | | |
301 | 331 | | |
| 332 | + | |
| 333 | + | |
302 | 334 | | |
303 | 335 | | |
304 | 336 | | |
| |||
357 | 389 | | |
358 | 390 | | |
359 | 391 | | |
| 392 | + | |
360 | 393 | | |
| 394 | + | |
361 | 395 | | |
362 | 396 | | |
| 397 | + | |
363 | 398 | | |
364 | 399 | | |
365 | 400 | | |
| |||
373 | 408 | | |
374 | 409 | | |
375 | 410 | | |
376 | | - | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
377 | 414 | | |
378 | 415 | | |
379 | | - | |
| 416 | + | |
| 417 | + | |
380 | 418 | | |
381 | 419 | | |
382 | 420 | | |
| |||
594 | 632 | | |
595 | 633 | | |
596 | 634 | | |
597 | | - | |
| 635 | + | |
598 | 636 | | |
599 | 637 | | |
600 | 638 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
237 | 236 | | |
238 | 237 | | |
239 | 238 | | |
240 | | - | |
241 | | - | |
242 | 239 | | |
243 | 240 | | |
244 | 241 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
This file was deleted.
0 commit comments