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 config to exclude function from Datadog #91

Merged
merged 3 commits into from
Dec 30, 2020

Conversation

hawkaa
Copy link
Contributor

@hawkaa hawkaa commented Dec 18, 2020

What does this PR do?

Basically the same as the excellent work done in #86 and #87, but includes a commit that deletes the DD_EXCLUDED_FUNCTIONS environment variable. Supersedes #90.

All credit to @nholbrook and @tianchu .

Motivation

Currently, there is no way to prevent Datadog from updating certain functions. One example of a scenario where this is a problem is when using this plugin with serverless-plugin-warmup. Datadog will update the handler of the warmer function created by this plugin, which prevents it from working.

Testing Guidelines

I added an additional test case and updated all associated test cases.

Additional Notes

This issue is documented here.

Types of changes

  • Bug fix
  • New feature
  • Breaking change
  • Misc (docs, refactoring, dependency upgrade, etc.)

Check all that apply

  • This PR's description is comprehensive
  • This PR contains breaking changes that are documented in the description
  • This PR introduces new APIs or parameters that are documented and unlikely to change in the foreseeable future
  • This PR impacts documentation, and it has been updated (or a ticket has been logged)
  • This PR's changes are covered by the automated tests
  • This PR collects user input/sensitive content into Datadog

DarcyRaynerDD and others added 2 commits December 18, 2020 08:30
* Add config to exclude functions from Datadog updates

* Updated single to double quotes

* Fix lint issues

* Fix documentation

Co-authored-by: Nick Holbrook <ndh175@gmail.com>
@hawkaa hawkaa requested a review from a team as a code owner December 18, 2020 07:37
@tianchu
Copy link
Contributor

tianchu commented Dec 21, 2020

@hawkaa Thanks for your contribution and quick turnaround, I will review and test this week!

Copy link
Contributor

@hghotra hghotra left a comment

Choose a reason for hiding this comment

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

LGTM 👍

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.

4 participants