Skip to content

Add decorator for AWS lambda#316

Closed
16pierre wants to merge 13 commits intomasterfrom
quentin.pierre/lambda-decorator
Closed

Add decorator for AWS lambda#316
16pierre wants to merge 13 commits intomasterfrom
quentin.pierre/lambda-decorator

Conversation

@16pierre
Copy link
Copy Markdown
Contributor

@16pierre 16pierre commented Nov 15, 2018

Wrapper to automatically initialize & flush in AWS lambda functions.

Example of a lambda:

from datadog.aws_lambda import datadog_lambda_wrapper, lambda_stats

@datadog_lambda_wrapper
def my_lambda_handle(event, context):
    lambda_stats.increment("some_metric", 10)

@16pierre 16pierre changed the title Added decorator for AWS lambda Add decorator for AWS lambda Nov 15, 2018
@16pierre 16pierre force-pushed the quentin.pierre/lambda-decorator branch 26 times, most recently from 17703f6 to e3220e9 Compare November 21, 2018 00:26
@16pierre 16pierre force-pushed the quentin.pierre/lambda-decorator branch from e3220e9 to 4b2d81f Compare November 21, 2018 15:41
@16pierre 16pierre force-pushed the quentin.pierre/lambda-decorator branch 5 times, most recently from d8a58c8 to bb03bc6 Compare November 26, 2018 19:02
@16pierre 16pierre force-pushed the quentin.pierre/lambda-decorator branch from bb03bc6 to 936f4e4 Compare November 26, 2018 19:08
@16pierre 16pierre force-pushed the quentin.pierre/lambda-decorator branch from 18943af to fb796cc Compare November 26, 2018 21:02
@16pierre
Copy link
Copy Markdown
Contributor Author

Cleaned up on another PR #324

@16pierre 16pierre closed this Nov 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant