-
Notifications
You must be signed in to change notification settings - Fork 187
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
Missing logs from opentelemetry-auto-psr3 #1374
Missing logs from opentelemetry-auto-psr3 #1374
Comments
Hi @NeilWhitworth thanks for the bug report. When |
Hi, |
Question from SIG: what does monolog do with context without keys? That might be a good basis for what we should do... |
Using monolog's JSON formatter, the context is either a JOSN object
or a simple JSON array
When using the line formatter
|
That looks like a list just gets stringified under the context key. Maybe we should use the PHP 8.1 array_is_list function and, given the check returns true, the formatter could maybe build out context implicitly |
Describe your environment
PHP 8.3.8 (cli) (built: Jun 6 2024 17:04:22) (NTS)
Symfony (6.4) based application
open-telemetry/opentelemetry-auto-psr3 v 0.0.6
OTEL_PHP_PSR3_MODE=export
Steps to reproduce
Call psr logger with a simple array as $context
What is the expected behavior?
All log record to be exported
What is the actual behavior?
The first 2 log records are exported and visible, but the 3rd disappears
Additional context
From Psr3Instrumentation.php
The text was updated successfully, but these errors were encountered: