You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running open-telemetry/opentelemetry-auto-pdo
on PHP 8.4.1 I'm not getting a construct span for PDO, because I'm not seeing this span my observability tool is
missing the database service at all, i've tried different o11y tools, but they are all not working.
The spans debug are generated by Grafana Alloy (http page otelcol.receiver.otlp.default -> live debugging), but with
the OTel collector I'm having the same results.
Describe your environment
macOS (the latest and greatest)
OrbStack (the latest and greatest)
PHP in Docker (different versions)
Symfony 7.2.1 (latest and greatest)
./bin/console about:
/var/www/html $ ./bin/console about
-------------------- ----------------------------------------------
Symfony
-------------------- ----------------------------------------------
Version 7.2.1
Long-Term Support No
End of maintenance 07/2025 (in +230 days)
End of life 07/2025 (in +230 days)
-------------------- ----------------------------------------------
Kernel
-------------------- ----------------------------------------------
Type App\Kernel
Environment dev
Debug true
Charset UTF-8
Cache directory ./var/cache/dev (12.9 MiB)
Build directory ./var/cache/dev (12.9 MiB)
Log directory ./var/log (42.3 MiB)
-------------------- ----------------------------------------------
PHP
-------------------- ----------------------------------------------
Version 8.4.1
Architecture 64 bits
Intl locale en_US_POSIX
Timezone Europe/Amsterdam (2024-12-13T11:41:40+01:00)
OPcache Enabled
APCu Enabled
Xdebug Not enabled
-------------------- ----------------------------------------------
Debug is disabled on my php on CLI, but it's enabled as plugin (it's the same for both PHP versions)
/var/www/html $ type php
php is /usr/local/sbin/php
/var/www/html $ cat /usr/local/sbin/php
#!/usr/bin/env sh
export XDEBUG_MODE=off
/usr/local/bin/php -d memory_limit=-1 "$@"
The traces are generated with a simple HTTP request (not CLI, so xdebug is enabled)
PHP 8.3.14
/var/www/html $ php -v
PHP 8.3.14 (cli) (built: Nov 21 2024 19:22:48) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.14, Copyright (c) Zend Technologies
with Zend OPcache v8.3.14, Copyright (c), by Zend Technologies
with Xdebug v3.4.0, Copyright (c) 2002-2024, by Derick Rethans
Hi!
When running open-telemetry/opentelemetry-auto-pdo
on PHP 8.4.1 I'm not getting a construct span for PDO, because I'm not seeing this span my observability tool is
missing the database service at all, i've tried different o11y tools, but they are all not working.
The spans debug are generated by Grafana Alloy (http page
otelcol.receiver.otlp.default
-> live debugging), but withthe OTel collector I'm having the same results.
Describe your environment
./bin/console about
:Debug is disabled on my
php
on CLI, but it's enabled as plugin (it's the same for both PHP versions)The traces are generated with a simple HTTP request (not CLI, so xdebug is enabled)
PHP 8.3.14
First span:
When running PHP 8.4.1:
First span:
Steps to reproduce
Doing a HTTP request to a PHP application on PHP 8.4.1 with OTel, it's gives a different first span.
What is the expected behavior?
Seeing the
PDO::__construct
as a first span.What is the actual behavior?
Getting a different first span,
PDO::exec
instead ofPDO::__construct
.This is causing the database service to be missing in the observability tool.
Additional context
If you need additional information, please contact me :).
The text was updated successfully, but these errors were encountered: