Repository navigation
chore(layer): drop integrations for runtimes that can't run in Lambda - #903
Merged
Merged
Conversation
Remove ddtrace's Azure Functions, Azure Durable Functions, Ray, Ray Serve and vLLM integrations (and the LLM Observability vLLM pieces) from the layer. None of these runtimes run inside AWS Lambda. Ray's __init__ and constants stay because the tracer imports them at startup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 of 11 tasks
Contributor
There was a problem hiding this comment.
More details
Static import checks support the integration removals while preserving Ray’s tracer-startup modules. A full Lambda layer build was not independently validated.
🤖 Bits Code Review · Commit 3494d98
purple4reina
approved these changes
Dec 4, 2026
purple4reina
left a comment
Contributor
There was a problem hiding this comment.
Has minimal impact on package size, but still worth it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Removes these ddtrace integrations from the layer:
Motivation
None of these can run inside AWS Lambda. Azure Functions is another cloud's function host, Ray is a cluster runtime, and vLLM is a GPU inference server. This is part of keeping the layer under the size check without raising the budget (see #901 and #902).
Ray's
__init__andconstantsstay:ddtrace/_trace/trace_handlers.pyimportsddtrace.contrib.internal.ray.constantsat tracer startup. If a user imports one of the removed packages anyway, automatic patching logs that the integration couldn't be enabled and carries on (raise_errors=False).Results (Python 3.15, amd64, dd-trace-py main pipeline 157654945)
Testing Guidelines
UPSTREAM_PIPELINE_ID=157654945 PYTHON_VERSION=3.15 ARCH=amd64 ./scripts/build_layers.shand rancheck_layer_size.sh(numbers above).public.ecr.aws/sam/build-python3.15:1, withDD_LLMOBS_ENABLED,DD_APPSEC_ENABLED,DD_PROFILING_ENABLEDandDD_EXCEPTION_REPLAY_ENABLEDall on,datadog_lambda.handleremitted the same spans as main (aws.lambda,aws.lambda.load,aws.lambda.import,sqlite.query). It logged nothing new.ddtrace.*module in the layer and compared failures against main. The only differences are the removed modules themselves, so nothing left in the layer imports what this PR removes.Types of Changes
Check all that apply
🤖 Generated with Claude Code