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: patch-diff.githubusercontent.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:1e1d1867-0bfd-bb1b-b11f-16e4a4a77139 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DA34:DDFC1:132C791:18EB401:699088AB |
| html-safe-nonce | 3c24653bf67a37126fc9ae74ddb5283e2a935dd03c4b7ff5b79979600d57e184 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTM0OkRERkMxOjEzMkM3OTE6MThFQjQwMTo2OTkwODhBQiIsInZpc2l0b3JfaWQiOiI4MDk1MjQyMDgxNjgzOTMzMzU1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a0f6b1d77a2340f8c1b9a50661bdc962be803cefab1693652b005db8fb958fe2 |
| 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