Title: Slow cloud request/response tagging in Docker Lambda function with datadog-lambda · Issue #633 · DataDog/datadog-lambda-python · GitHub
Open Graph Title: Slow cloud request/response tagging in Docker Lambda function with datadog-lambda · Issue #633 · DataDog/datadog-lambda-python
X Title: Slow cloud request/response tagging in Docker Lambda function with datadog-lambda · Issue #633 · DataDog/datadog-lambda-python
Description: Hi, not sure if this is the right place or it should rather go to ddtrace or somewhere else: Reproduction repo with CDK: https://github.com/maxfriedrich/datadog-cloud-payload-tagging-repro The cloud request/response payload tagging featu...
Open Graph Description: Hi, not sure if this is the right place or it should rather go to ddtrace or somewhere else: Reproduction repo with CDK: https://github.com/maxfriedrich/datadog-cloud-payload-tagging-repro The clou...
X Description: Hi, not sure if this is the right place or it should rather go to ddtrace or somewhere else: Reproduction repo with CDK: https://github.com/maxfriedrich/datadog-cloud-payload-tagging-repro The clou...
Opengraph URL: https://github.com/DataDog/datadog-lambda-python/issues/633
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Slow cloud request/response tagging in Docker Lambda function with datadog-lambda","articleBody":"Hi, not sure if this is the right place or it should rather go to ddtrace or somewhere else:\n\nReproduction repo with CDK: https://github.com/maxfriedrich/datadog-cloud-payload-tagging-repro\n\nThe cloud request/response payload tagging feature causes a big slowdown for us for any DynamoDB query, even when \"disabled\" with the environment variable value `\"$.*\"` (0.xx seconds to \u003e 10 seconds query), with the following setup:\n* Docker Lambda based on the Lambda Python 3.11 (or 3.13) base image\n* Installing the Datadog Lambda extension into the container\n* Installing datadog-lambda and ddtrace with into the container\n* Running the function with `datadog_lambda.handler`\n\n(this function outgrew the zip size limit, this is why it's built like this -- is this a supported setup?)\n\nWe can work around it by setting the environment variable values to `\"\"`, fully disabling the feature, not just redacting all fields.\n\nThe problem only occurs with a Docker based Lambda function, the handler from my reproduction is fine in the Python runtime and the Datadog extension and Lambda layers.\n\nOutput from my test script:\n\n```console\nTesting slow function: arn:aws:lambda:eu-central-1:...:function:DdTaggingReproStack-Function1904AA941-QLjJ2nwy96AV\nExecution time: 11.545 seconds\nExecution time: 10.865 seconds\nExecution time: 11.279 seconds\nExecution time: 11.604 seconds\nExecution time: 11.659 seconds\n\nTesting fast function: arn:aws:lambda:eu-central-1:...:function:DdTaggingReproStack-Function28EA0674A-36P7xO9x9CbG\nExecution time: 0.235 seconds\nExecution time: 0.188 seconds\nExecution time: 0.168 seconds\nExecution time: 0.194 seconds\nExecution time: 0.206 seconds\n```\n\nDo you have any ideas what could cause this? Feel free to move the issue if it belongs somewhere else. Thank you very much!","author":{"url":"https://github.com/maxfriedrich","@type":"Person","name":"maxfriedrich"},"datePublished":"2025-07-14T10:28:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/633/datadog-lambda-python/issues/633"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:853f769a-a2dd-63e9-e6cd-a980a17e4c1c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CB04:66B2:173F82D:1E0A3F0:69909702 |
| html-safe-nonce | 184f4a9937fa1b994976c8735eb79a038cb9e2071d3b4c62e5a49f6d685680b0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjA0OjY2QjI6MTczRjgyRDoxRTBBM0YwOjY5OTA5NzAyIiwidmlzaXRvcl9pZCI6IjU4MTYzOTQzNzY0NDQ2Nzk5MzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 01b4fd0ab8db618a58e0598c4a3e831739b8fdc7166f1af057c8df5ffa34678f |
| hovercard-subject-tag | issue:3228244589 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/DataDog/datadog-lambda-python/633/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bc55c19339472b2222ea922c3adaecf94f655dab8b41a4efd3a5107f634f574c/DataDog/datadog-lambda-python/issues/633 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bc55c19339472b2222ea922c3adaecf94f655dab8b41a4efd3a5107f634f574c/DataDog/datadog-lambda-python/issues/633 |
| og:image:alt | Hi, not sure if this is the right place or it should rather go to ddtrace or somewhere else: Reproduction repo with CDK: https://github.com/maxfriedrich/datadog-cloud-payload-tagging-repro The clou... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | maxfriedrich |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/DataDog/datadog-lambda-python git https://github.com/DataDog/datadog-lambda-python.git |
| octolytics-dimension-user_id | 365230 |
| octolytics-dimension-user_login | DataDog |
| octolytics-dimension-repository_id | 183265904 |
| octolytics-dimension-repository_nwo | DataDog/datadog-lambda-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 183265904 |
| octolytics-dimension-repository_network_root_nwo | DataDog/datadog-lambda-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width