Skip to content
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

add datadog integration #398

Merged
merged 6 commits into from
Jan 24, 2022
Merged

add datadog integration #398

merged 6 commits into from
Jan 24, 2022

Conversation

liu-ziyang
Copy link
Contributor

This PR adds datadog integration to backend lambda.

The default integration allows datadog to report metrics like invoking time and aws s3 request times.
In terms of custom metrics, currently it is tracking plugin counts, but we can build other metrics on top of it

@liu-ziyang liu-ziyang changed the title Dev datadog integration add datadog integration Jan 23, 2022
Copy link
Collaborator

@codemonkey800 codemonkey800 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one comment but LGTM

Comment on lines +8 to +9
ENV DD_LAMBDA_HANDLER="api.app.handler"
ENV DD_TRACE_ENABLED="true"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this used by datadog for tracing? might be nice to add documentation about it 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the docs is here: https://docs.datadoghq.com/serverless/installation/python/?tab=containerimage

I think we may want to include the doc in a central place, let me think about this

@@ -5,10 +5,11 @@ flask-githubapp
gunicorn[gevent]
pyyaml
requests
markdown==3.3.4
markdown
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the rationale behind this code change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the binning was because a bug in markdown, I helped patched this upstream, I thought I removed the binning but apparently not, just sneaking it back in now

@liu-ziyang liu-ziyang merged commit 9e36472 into main Jan 24, 2022
@liu-ziyang liu-ziyang deleted the dev-datadog-integration branch January 24, 2022 22:57
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.

3 participants