diff --git a/Dockerfile b/Dockerfile index 7cd80c26..dab5aea5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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*