Commit 0c7c4c7
* Adds API Gateway transaction ID to requests and logs immediately in case of timeout #458
This commit addresses two issues:
* The current morgan implementation does not pass through the request id generated by the API Gateway, making it difficult to filter to a given bad request. By writing output to console out, we are able to capture this id as part of the log statement
* The current morgan implementation will only log if a request is successful due to the fact that it is async, which means that if a lambda timeout is reached we will not see the request that caused the timeout. This is problematic, because as an operator, we may want to see if this timeout is reproduceable. Adding with minimal additional output will allow us to capture the start of the request. This adds one line of logging for each request, but will hopefully assist troubleshooting.
* Updates CHANGELOG and package.json version #458
* Changes version to a minor version and adds links at the bottom of the CHANGELOG
---------
Co-authored-by: Dan Stark <[email protected]>
1 parent 8fe7aac commit 0c7c4c7
3 files changed
+22
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
8 | 14 | | |
9 | 15 | | |
10 | 16 | | |
| |||
274 | 280 | | |
275 | 281 | | |
276 | 282 | | |
| 283 | + | |
| 284 | + | |
277 | 285 | | |
278 | 286 | | |
279 | 287 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
26 | 38 | | |
27 | 39 | | |
28 | 40 | | |
| |||
0 commit comments