Skip to content

Commit 502303d

Browse files
authored
fix(profiling): include ddup and dd_wrapper so files to enable profiling (#638)
* chore(profiling): include ddup and dd_wrapper so files * bump up layer size limit * set to 21
1 parent 37078c3 commit 502303d

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ RUN rm -rf ./python/lib/$runtime/site-packages/setuptools
2323
RUN rm -rf ./python/lib/$runtime/site-packages/jsonschema/tests
2424
RUN rm -f ./python/lib/$runtime/site-packages/ddtrace/appsec/_iast/_taint_tracking/*.so
2525
RUN rm -f ./python/lib/$runtime/site-packages/ddtrace/appsec/_iast/_stacktrace*.so
26-
RUN rm -f ./python/lib/$runtime/site-packages/ddtrace/internal/datadog/profiling/libdd_wrapper*.so
27-
RUN rm -f ./python/lib/$runtime/site-packages/ddtrace/internal/datadog/profiling/ddup/_ddup.*.so
2826
# _stack_v2 may not exist for some versions of ddtrace (e.g. under python 3.13)
2927
RUN rm -f ./python/lib/$runtime/site-packages/ddtrace/internal/datadog/profiling/stack_v2/_stack_v2.*.so
3028
# remove *.dist-info directories except any entry_points.txt files

scripts/check_layer_size.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
# Compares layer size to threshold, and fails if below that threshold
99

1010
set -e
11-
MAX_LAYER_COMPRESSED_SIZE_KB=$(expr 6 \* 1024)
12-
MAX_LAYER_UNCOMPRESSED_SIZE_KB=$(expr 15 \* 1024)
11+
MAX_LAYER_COMPRESSED_SIZE_KB=$(expr 8 \* 1024)
12+
MAX_LAYER_UNCOMPRESSED_SIZE_KB=$(expr 21 \* 1024)
1313

1414

1515
LAYER_FILES_PREFIX="datadog_lambda_py"

0 commit comments

Comments
 (0)