-
Couldn't load subscription status.
- Fork 395
Add timed out enhanced lambda metric #278
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
Merged
jcstorms1
merged 2 commits into
master
from
jordan.storms/add_enhanced_timed_out_metric
Jun 10, 2020
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
aws/logs_monitoring/tests/snapshots/cloudwatch_log_coldstart.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "awslogs": { | ||
| "data": "H4sIAAAAAAAAAK2QT2/aQBDFv4pl9Yjj2dnZf9yIcKNIpa2w20tA1RovqSUbU3sppVG+exZIJVQlh0i5rd7svPeb9xC3bhjsvSsOWxeP4+mkmPyYZXk+ucniUdztN64PsgRGqFAZYyDITXd/03e7bZikdj+kjW3LyqaD7/p2SFZNt6v21q9+Ju632/jzQu57Z9uwgYCQgkyB0rsPnyZFlhdLu8aSOaaJl5osVhpWUmkC6/h6bRUGi2FXDqu+3vq623ysG+/6IR7fxe3hnLE8hWTH91F/iOsqZHFBWmrOyIAGkMQZCia4BMkADXKmGBE3EkkoprRQEoUCpJDn69CMt204kgnDUJMQBowe/Wss2OfFZF5Ec/drF77eVuOoKlGJtVaJNZwSUswm2mhISsnLNVUrVroy+h7QwxHj6Pn6xSZ+HL0ALJWgI6siw4wyCjkpFSCNVhoIECUHQ8xoVPw1YAbsEjj7PH0r7jvQvVrnf3Tz7OuXt/e58NNdb/2pUXalZNQOC39dN42roosJwGkwc23XH6K8/uuCiDqaXQfR/omeB98GF3LprN9uan/pgXBlzv7HVpaPT8e9Sb4+AwAA" | ||
| } | ||
| } |
77 changes: 77 additions & 0 deletions
77
aws/logs_monitoring/tests/snapshots/cloudwatch_log_coldstart.json~snapshot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,77 @@ | ||
| { | ||
| "events": [ | ||
| { | ||
| "path": "/v1/input/abcdefghijklmnopqrstuvwxyz012345", | ||
| "verb": "POST", | ||
| "content-type": "application/json", | ||
| "data": [ | ||
| { | ||
| "id": "35486831490800643125153606102923171443962457178576257024", | ||
| "timestamp": 1591284559098, | ||
| "message": "START RequestId: db275f87-a934-471a-8980-b63bf4dc1beb Version: $LATEST\n", | ||
| "aws": { | ||
| "awslogs": { | ||
| "logGroup": "/aws/lambda/storms-cloudwatch-event", | ||
| "logStream": "2020/06/04/[$LATEST]af2b1e1843b84a2d80c67840ae3ffa72", | ||
| "owner": "601427279990" | ||
| }, | ||
| "function_version": "$LATEST", | ||
| "invoked_function_arn": "arn:aws:lambda:us-east-1:0:function:test" | ||
| }, | ||
| "lambda": { | ||
| "arn": "arn:aws:lambda:us-east-1:0:function:storms-cloudwatch-event" | ||
| }, | ||
| "ddsourcecategory": "aws", | ||
| "ddtags": "forwardername:test,forwarder_memorysize:1536,forwarder_version:x.x.x,env:none,account_id:0,aws_account:0,functionname:storms-cloudwatch-event,region:us-east-1", | ||
| "ddsource": "lambda", | ||
| "service": "storms-cloudwatch-event", | ||
| "host": "arn:aws:lambda:us-east-1:0:function:storms-cloudwatch-event" | ||
| }, | ||
| { | ||
| "id": "35486831490867545360749197972347778598780402263094198273", | ||
| "timestamp": 1591284559101, | ||
| "message": "END RequestId: db275f87-a934-471a-8980-b63bf4dc1beb\n", | ||
| "aws": { | ||
| "awslogs": { | ||
| "logGroup": "/aws/lambda/storms-cloudwatch-event", | ||
| "logStream": "2020/06/04/[$LATEST]af2b1e1843b84a2d80c67840ae3ffa72", | ||
| "owner": "601427279990" | ||
| }, | ||
| "function_version": "$LATEST", | ||
| "invoked_function_arn": "arn:aws:lambda:us-east-1:0:function:test" | ||
| }, | ||
| "lambda": { | ||
| "arn": "arn:aws:lambda:us-east-1:0:function:storms-cloudwatch-event" | ||
| }, | ||
| "ddsourcecategory": "aws", | ||
| "ddtags": "forwardername:test,forwarder_memorysize:1536,forwarder_version:x.x.x,env:none,account_id:0,aws_account:0,functionname:storms-cloudwatch-event,region:us-east-1", | ||
| "ddsource": "lambda", | ||
| "service": "storms-cloudwatch-event", | ||
| "host": "arn:aws:lambda:us-east-1:0:function:storms-cloudwatch-event" | ||
| }, | ||
| { | ||
| "id": "35486831490867545360749197972347778598780402263094198274", | ||
| "timestamp": 1591284559101, | ||
| "message": "REPORT RequestId: db275f87-a934-471a-8980-b63bf4dc1beb\tDuration: 1.76 ms\tBilled Duration: 100 ms\tMemory Size: 128 MB\tMax Memory Used: 48 MB\tInit Duration: 120.96 ms\t\n", | ||
| "aws": { | ||
| "awslogs": { | ||
| "logGroup": "/aws/lambda/storms-cloudwatch-event", | ||
| "logStream": "2020/06/04/[$LATEST]af2b1e1843b84a2d80c67840ae3ffa72", | ||
| "owner": "601427279990" | ||
| }, | ||
| "function_version": "$LATEST", | ||
| "invoked_function_arn": "arn:aws:lambda:us-east-1:0:function:test" | ||
| }, | ||
| "lambda": { | ||
| "arn": "arn:aws:lambda:us-east-1:0:function:storms-cloudwatch-event" | ||
| }, | ||
| "ddsourcecategory": "aws", | ||
| "ddtags": "forwardername:test,forwarder_memorysize:1536,forwarder_version:x.x.x,env:none,account_id:0,aws_account:0,functionname:storms-cloudwatch-event,region:us-east-1", | ||
| "ddsource": "lambda", | ||
| "service": "storms-cloudwatch-event", | ||
| "host": "arn:aws:lambda:us-east-1:0:function:storms-cloudwatch-event" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } |
5 changes: 5 additions & 0 deletions
5
aws/logs_monitoring/tests/snapshots/cloudwatch_log_timeout.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "awslogs": { | ||
| "data": "H4sIAAAAAAAAAK1T247TMBD9FSvisWnGdztvXbWsVqKAmsAD2wo5ibtE5FJih9Jd7b/jtou0ICF1BW+eM+M5Z45mHqLWOmfubH7Y2SiN5rN89nm5yLLZ9SKaRP2+s0OABWBGJJFaawhw099dD/24C5nE7F3SmLaoTOJ8P7QuLpt+rPbGl19i+912/vwh84M1bfhBgEACIgGd3L56M8sXWb4pCNNKcFMZs2VbUynYar5VpgItCS9UaOHGwpVDvfN1372uG28HF6W3UXs4c2xOJIvj+4g/RHUVuChnWjCiqeRSEwGUaEVDxChgSbkgXGImtCJCciWkwkBDAEc+XwdnvGnDkJhrHOo0o6F48sux0D7LZ6screy3MZTeVCmSpeZCFjzGIIuYGVHGSmoVA+bSlARXBSfoY5AehkjR0/TrLnqc/CGYMaJAUEYE1loGfZxzKSQGDTzI1hiAYE2JwpwpovRfBAvM8XPBi7fzl8r9d3WnlblE3Wrx/t3L/Vz7+TgYf3KUAtApFqh1a39VN42t0G9JOGWWtu2HA8rqe5siTBRaXgXQ/EBPiQ/OBm52xm+62j9rgomcAjm1+Q/O4AudOd5MDCIGnWOeAkmJmGIOny5buNy4r+hIU6F+9Mhsw/EgOg1uOFv2XeXW3XGWzeNPhE+9yQ4EAAA=" | ||
| } | ||
| } |
99 changes: 99 additions & 0 deletions
99
aws/logs_monitoring/tests/snapshots/cloudwatch_log_timeout.json~snapshot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,99 @@ | ||
| { | ||
| "events": [ | ||
| { | ||
| "path": "/v1/input/abcdefghijklmnopqrstuvwxyz012345", | ||
| "verb": "POST", | ||
| "content-type": "application/json", | ||
| "data": [ | ||
| { | ||
| "id": "35496429375792603298393743017356257146982675867810398208", | ||
| "timestamp": 1591714943146, | ||
| "message": "START RequestId: 7c9567b5-107b-4a6c-8798-0157ac21db52 Version: $LATEST\n", | ||
| "aws": { | ||
| "awslogs": { | ||
| "logGroup": "/aws/lambda/storms-cloudwatch-event", | ||
| "logStream": "2020/06/09/[$LATEST]b249865adaaf4fad80f95f8ad09725b8", | ||
| "owner": "601427279990" | ||
| }, | ||
| "function_version": "$LATEST", | ||
| "invoked_function_arn": "arn:aws:lambda:us-east-1:0:function:test" | ||
| }, | ||
| "lambda": { | ||
| "arn": "arn:aws:lambda:us-east-1:0:function:storms-cloudwatch-event" | ||
| }, | ||
| "ddsourcecategory": "aws", | ||
| "ddtags": "forwardername:test,forwarder_memorysize:1536,forwarder_version:x.x.x,env:none,account_id:0,aws_account:0,functionname:storms-cloudwatch-event,region:us-east-1", | ||
| "ddsource": "lambda", | ||
| "service": "storms-cloudwatch-event", | ||
| "host": "arn:aws:lambda:us-east-1:0:function:storms-cloudwatch-event" | ||
| }, | ||
| { | ||
| "id": "35496429442806342619978265557671090556291002193281548289", | ||
| "timestamp": 1591714946151, | ||
| "message": "END RequestId: 7c9567b5-107b-4a6c-8798-0157ac21db52\n", | ||
| "aws": { | ||
| "awslogs": { | ||
| "logGroup": "/aws/lambda/storms-cloudwatch-event", | ||
| "logStream": "2020/06/09/[$LATEST]b249865adaaf4fad80f95f8ad09725b8", | ||
| "owner": "601427279990" | ||
| }, | ||
| "function_version": "$LATEST", | ||
| "invoked_function_arn": "arn:aws:lambda:us-east-1:0:function:test" | ||
| }, | ||
| "lambda": { | ||
| "arn": "arn:aws:lambda:us-east-1:0:function:storms-cloudwatch-event" | ||
| }, | ||
| "ddsourcecategory": "aws", | ||
| "ddtags": "forwardername:test,forwarder_memorysize:1536,forwarder_version:x.x.x,env:none,account_id:0,aws_account:0,functionname:storms-cloudwatch-event,region:us-east-1", | ||
| "ddsource": "lambda", | ||
| "service": "storms-cloudwatch-event", | ||
| "host": "arn:aws:lambda:us-east-1:0:function:storms-cloudwatch-event" | ||
| }, | ||
| { | ||
| "id": "35496429442806342619978265557671090556291002193281548290", | ||
| "timestamp": 1591714946151, | ||
| "message": "REPORT RequestId: 7c9567b5-107b-4a6c-8798-0157ac21db52\tDuration: 3003.16 ms\tBilled Duration: 3000 ms\tMemory Size: 128 MB\tMax Memory Used: 48 MB\tInit Duration: 127.02 ms\t\n", | ||
| "aws": { | ||
| "awslogs": { | ||
| "logGroup": "/aws/lambda/storms-cloudwatch-event", | ||
| "logStream": "2020/06/09/[$LATEST]b249865adaaf4fad80f95f8ad09725b8", | ||
| "owner": "601427279990" | ||
| }, | ||
| "function_version": "$LATEST", | ||
| "invoked_function_arn": "arn:aws:lambda:us-east-1:0:function:test" | ||
| }, | ||
| "lambda": { | ||
| "arn": "arn:aws:lambda:us-east-1:0:function:storms-cloudwatch-event" | ||
| }, | ||
| "ddsourcecategory": "aws", | ||
| "ddtags": "forwardername:test,forwarder_memorysize:1536,forwarder_version:x.x.x,env:none,account_id:0,aws_account:0,functionname:storms-cloudwatch-event,region:us-east-1", | ||
| "ddsource": "lambda", | ||
| "service": "storms-cloudwatch-event", | ||
| "host": "arn:aws:lambda:us-east-1:0:function:storms-cloudwatch-event" | ||
| }, | ||
| { | ||
| "id": "35496429442806342619978265557671090556291002193281548291", | ||
| "timestamp": 1591714946151, | ||
| "message": "2020-06-09T15:02:26.150Z 7c9567b5-107b-4a6c-8798-0157ac21db52 Task timed out after 3.00 seconds\n\n", | ||
| "aws": { | ||
| "awslogs": { | ||
| "logGroup": "/aws/lambda/storms-cloudwatch-event", | ||
| "logStream": "2020/06/09/[$LATEST]b249865adaaf4fad80f95f8ad09725b8", | ||
| "owner": "601427279990" | ||
| }, | ||
| "function_version": "$LATEST", | ||
| "invoked_function_arn": "arn:aws:lambda:us-east-1:0:function:test" | ||
| }, | ||
| "lambda": { | ||
| "arn": "arn:aws:lambda:us-east-1:0:function:storms-cloudwatch-event" | ||
| }, | ||
| "ddsourcecategory": "aws", | ||
| "ddtags": "forwardername:test,forwarder_memorysize:1536,forwarder_version:x.x.x,env:none,account_id:0,aws_account:0,functionname:storms-cloudwatch-event,region:us-east-1", | ||
| "ddsource": "lambda", | ||
| "service": "storms-cloudwatch-event", | ||
| "host": "arn:aws:lambda:us-east-1:0:function:storms-cloudwatch-event" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a pity we aren't capturing metrics with the integration test right now, it would make this test much more useful