Skip to content

Conversation

@rithikanarayan
Copy link
Contributor

@rithikanarayan rithikanarayan commented Nov 11, 2025

What does this PR do?

Includes ./python/lib/$runtime/site-packages/ddtrace/internal/datadog/profiling/stack_v2/_stack_v2.*.so in Python Lambda layer to enable python profiling v2.

Motivation

The profiling team is planning on deprecating profiling v1 in the dd-trace-py 4.x release. We want to move lambdas to v2 before this happens.

Testing Guidelines

Tested profiling on a API Gateway -> Lambda -> SQS -> Lambda setup using custom lambda layer arn:aws:lambda:us-west-2:425362996713:layer:Python313-profilingv2-rithika:1. Invoked producer lambda repeatedly in a short timespan to generate profiles. Inspected profiles in the Datadog UI and checked logs to ensure that "failing back to v1 stack sampler" warning log no longer appears. Profiles for producer lambda

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)

@rithikanarayan rithikanarayan marked this pull request as ready for review November 12, 2025 16:12
@rithikanarayan rithikanarayan requested review from a team as code owners November 12, 2025 16:12
@rithikanarayan rithikanarayan marked this pull request as draft November 12, 2025 17:39
@rithikanarayan rithikanarayan marked this pull request as ready for review November 12, 2025 21:14
@rithikanarayan rithikanarayan merged commit e303ad1 into main Nov 12, 2025
83 checks passed
@rithikanarayan rithikanarayan deleted the rithika.narayan/APMSVLS-252-profiling-v2 branch November 12, 2025 21:14
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