Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,25 @@ RUN rm -rf \
./python/lib/$runtime/site-packages/ddtrace/internal/test_visibility \
./python/lib/$runtime/site-packages/ddtrace/testing/

# Integrations for runtimes that cannot run inside AWS Lambda: other clouds'
# function hosts (Azure Functions), Ray clusters, and the vLLM inference server.
# If one of these packages is imported anyway, ddtrace logs that the integration
# could not be enabled and carries on. Ray's __init__ and constants stay: the
# tracer imports them at startup.
RUN rm -rf \
./python/lib/$runtime/site-packages/ddtrace/contrib/internal/azure_functions/ \
./python/lib/$runtime/site-packages/ddtrace/contrib/internal/azure_durable_functions/ \
./python/lib/$runtime/site-packages/ddtrace/contrib/internal/ray/core/ \
./python/lib/$runtime/site-packages/ddtrace/contrib/internal/ray/patch.py \
./python/lib/$runtime/site-packages/ddtrace/contrib/internal/ray/span_manager.py \
./python/lib/$runtime/site-packages/ddtrace/contrib/internal/ray/ray.manifest.yaml \
./python/lib/$runtime/site-packages/ddtrace/contrib/internal/ray_serve/ \
./python/lib/$runtime/site-packages/ddtrace/contrib/_events/ray.py \
./python/lib/$runtime/site-packages/ddtrace/_trace/subscribers/ray.py \
./python/lib/$runtime/site-packages/ddtrace/contrib/internal/vllm/ \
./python/lib/$runtime/site-packages/ddtrace/llmobs/_contrib/vllm/ \
./python/lib/$runtime/site-packages/ddtrace/llmobs/_integrations/vllm.py

# Dogshell
RUN rm -rf ./python/lib/$runtime/site-packages/datadog/dogshell
RUN rm -rf ./python/lib/$runtime/site-packages/bin/dog*
Expand Down
Loading