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 ext-opentelemetry is enabled and codebase has classes with #[WithSpan] attribute, opentelemetry.attr_hooks_enabled = On also needs to be set. Otherwise, the following warning is thrown in runtime:
Warning: ClassName::method(): OpenTelemetry: WithSpan attribute found but attribute hooks disabled in Unknown on line 0
It's fine having opentelemetry.attr_hooks_enabled = On in the running code, however, PHPUnit will crash with a nebulous segfault:
zsh: trace trap ./vendor/bin/phpunit tests/
Steps to reproduce
PHP 8.2.27
PHPUnit 10.5.40
php.ini
opentelemetry.attr_hooks_enabled = On
What is the expected behavior?
Disable warning or hooks in some way and not trigger warning
What is the actual behavior?
Unless I delete #[WithSpan] attributes or disable ext-opentelemetry altogether, there is no way to fix this.
The text was updated successfully, but these errors were encountered:
Hi @rauanmayemir thanks for the bug report. It sounds reasonable that warnings like this should be controllable (perhaps behind a config and off by default).
Describe your environment
When
ext-opentelemetry
is enabled and codebase has classes with#[WithSpan]
attribute,opentelemetry.attr_hooks_enabled = On
also needs to be set. Otherwise, the following warning is thrown in runtime:It's fine having
opentelemetry.attr_hooks_enabled = On
in the running code, however, PHPUnit will crash with a nebulous segfault:Steps to reproduce
PHP 8.2.27
PHPUnit 10.5.40
php.ini
What is the expected behavior?
Disable warning or hooks in some way and not trigger warning
What is the actual behavior?
Unless I delete
#[WithSpan]
attributes or disableext-opentelemetry
altogether, there is no way to fix this.The text was updated successfully, but these errors were encountered: