Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: dd-library-php is downloading 550 MB #2950

Open
rburgst opened this issue Nov 14, 2024 · 1 comment
Open

[Bug]: dd-library-php is downloading 550 MB #2950

rburgst opened this issue Nov 14, 2024 · 1 comment
Labels
🐛 bug Something isn't working

Comments

@rburgst
Copy link

rburgst commented Nov 14, 2024

Bug report

When I run this in my Dockerfile, it downloads 550 MB of code just for the tracing library. This is larger than my whole app container altogehter!

RUN curl -LO https://github.com/DataDog/dd-trace-php/releases/latest/download/datadog-setup.php && php datadog-setup.php --php-bin=all --enable-appsec --enable-profiling

Whats wrong?

PHP version

8.3.13

Tracer or profiler version

1.4.2

Installed extensions

[PHP Modules]
bcmath
Core
ctype
curl
datadog-profiling
date
ddappsec
ddtrace
dom
exif
fileinfo
filter
gd
hash
iconv
imagick
intl
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_pgsql
pdo_sqlite
Phar
posix
random
readline
redis
Reflection
session
SimpleXML
sodium
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache
datadog-profiling
ddappsec
ddtrace

Output of phpinfo()

tracer

{ "date": "2024-11-14T06:16:11Z", "os_name": "Linux 39c7a1c9df23 6.5.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 9 22:39:36 UTC 2024 aarch64", "os_version": "6.5.0-15-generic", "version": "1.4.2", "lang": "php", "lang_version": "8.3.9", "env": null, "enabled": true, "service": null, "enabled_cli": true, "agent_url": "http:\/\/localhost:8126", "debug": false, "analytics_enabled": false, "sample_rate": -1, "sampling_rules": [], "tags": [], "service_mapping": [], "distributed_tracing_enabled": true, "dd_version": null, "architecture": "aarch64", "instrumentation_telemetry_enabled": true, "sapi": "fpm-fcgi", "datadog.trace.sources_path": "\/opt\/datadog\/dd-library\/1.4.2\/dd-trace-sources\/src", "open_basedir_configured": false, "uri_fragment_regex": null, "uri_mapping_incoming": null, "uri_mapping_outgoing": null, "auto_flush_enabled": false, "generate_root_span": true, "http_client_split_by_domain": false, "measure_compile_time": true, "report_hostname_on_root_span": false, "traced_internal_functions": null, "enabled_from_env": true, "opcache.file_cache": null, "sidecar_trace_sender": true, "agent_error": "Failed to connect to localhost port 8126 after 0 ms: Couldn't connect to server" } 

diagnostics (didnt start the dd agent in another container yet)

Failed to connect to localhost port 8126 after 0 ms: Couldn't connect to server

Upgrading from

No response

@rburgst rburgst added the 🐛 bug Something isn't working label Nov 14, 2024
@bwoebi
Copy link
Collaborator

bwoebi commented Nov 14, 2024

We hear you, and we already started working on it: #2951 will ensure that download size is small. (it's 38 MB right now, the largest package.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants