Skip to content

Add decorator for AWS lambda#324

Merged
16pierre merged 10 commits intomasterfrom
quentin.pierre/aws-lambda-decorator
Nov 27, 2018
Merged

Add decorator for AWS lambda#324
16pierre merged 10 commits intomasterfrom
quentin.pierre/aws-lambda-decorator

Conversation

@16pierre
Copy link
Copy Markdown
Contributor

@16pierre 16pierre commented Nov 26, 2018

Wrapper to automatically initialize & flush in AWS lambda functions.

Example of a lambda:

from datadog import datadog_lambda_wrapper, lambda_metric

@datadog_lambda_wrapper
def my_lambda_handle(event, context):
    lambda_metric("some_metric", 10)

@16pierre 16pierre force-pushed the quentin.pierre/aws-lambda-decorator branch from 36217be to 245f358 Compare November 26, 2018 22:00
@16pierre 16pierre force-pushed the quentin.pierre/aws-lambda-decorator branch from 2fb8094 to f20e2bf Compare November 27, 2018 17:10
@yannmh yannmh self-requested a review November 27, 2018 21:31
@16pierre 16pierre force-pushed the quentin.pierre/aws-lambda-decorator branch from 021f298 to 212744b Compare November 27, 2018 21:31
@16pierre 16pierre merged commit e813a88 into master Nov 27, 2018
@16pierre 16pierre deleted the quentin.pierre/aws-lambda-decorator branch November 27, 2018 21:33
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.

2 participants