-
-
Notifications
You must be signed in to change notification settings - Fork 111
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 layer for Datadog extension #404
Conversation
4965219
to
015d14a
Compare
Hey Ramsey, team Re that article you are referring (https://blog.deleu.dev/datadog-aws-lambda-php/) After integration, found lots of notices in CloudWatch like: Right now - discussing that issue with DD support. I wonder - does anyone have the same notices? |
@wolflingorg, the blog post doesn't mention copying over the integrations, which it sounds like you're trying to use. In order to use those, you need a line like this:
You also need to make sure your Datadog INI settings are configured to link properly to the integrations code in This is all handled in this pull request. If you'd like to give it a try and report back, that would help a lot. Thanks! |
Hey, Thanks for sharing an example & comments. You're right, looks like we missed something. After applying what you suggested, all looks good. Thanks a lot The only thing I noticed: you installed DD without an "--enable-profiling" flag (and also commented out profiling in the .ini file)... Is there any reason why? |
My understanding is that profiling is still in beta. The extension |
Hi, to provide some update here: on my end it looks good, but unfortunately we released Bref v2 which impacts the build here. I'm afraid you would have to rebase (you can look at how Dockerfiles look in the repo now to get some examples) |
Hi, we are looking forward to use datadog. We're still using bref v1 but we are planning to migrate to v2 in a near future. Are you still working on this @ramsey? Do you need some help? |
I went in a different direction, for now. Soon, I’ll open a new pull request with the changes I made. |
Thanks! |
This PR adds a layer containing the Datadog Agent and ddtrace extension, following the approach @deleugpn describes at https://blog.deleu.dev/datadog-aws-lambda-php/
I have built the layers and tested this with my own serverless application, and it properly sends logging and tracing information to Datadog.
Here's an example
serverless.yml
configuration for this layer:This closes #35, when accepted.