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

"OTEL_PHP_AUTOLOAD_ENABLED=true" not working in php.ini #1431

Open
Willhang23 opened this issue Nov 8, 2024 · 1 comment
Open

"OTEL_PHP_AUTOLOAD_ENABLED=true" not working in php.ini #1431

Willhang23 opened this issue Nov 8, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Willhang23
Copy link

Willhang23 commented Nov 8, 2024

"true" in php.ini are evaluated to "1" by get_cfg_var() (OpenTelemetry\SDK\Common\Configuration\Resolver\PhpIniAccessor) while the OpenTelemetry\SDK\Common\Configuration\Parser\BooleanParser only accepts "true" as true value.

@brettmc
Copy link
Collaborator

brettmc commented Dec 19, 2024

Discussed a little in the linked PR... are you sure you're correctly quoting "true" in php.ini? The opentelemetry spec says we have to use "true" and not other things that could also mean true, and in my testing double-quoting resolves this. We might need a documentation patch to clarify this, though.

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