Support ddtrace v4 by rithikanarayan · Pull Request #701 · DataDog/datadog-lambda-python

What does this PR do?

Conditions ddtrace version based on runtime; Python 3.8 and 3.9 layers will use ddtrace versions >=3.19.1 and <4, while Python 3.10 and above will use ddtrace versions >=4 and <5.

Motivation

ddtrace released v4 a few weeks ago with breaking changes and many bug fixes; this PR aligns the lambda layer with that release.

Testing Guidelines

Additional Notes

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
  • This PR passes the integration tests (ask a Datadog member to run the tests)