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

TelemetryProcessor for Monolog returns wrong type #1153

Open
devnev opened this issue Oct 4, 2024 · 0 comments
Open

TelemetryProcessor for Monolog returns wrong type #1153

devnev opened this issue Oct 4, 2024 · 0 comments
Labels

Comments

@devnev
Copy link
Contributor

devnev commented Oct 4, 2024

Description

I am getting an error "[TypeError]\nMonolog\\Logger::handleException(): Argument #2 ($record) must be of type Monolog\\LogRecord, array given, called in /var/www/vendor/monolog/monolog/src/Monolog/Logger.php on line 394\nin vendor/monolog/monolog/src/Monolog/Logger.php:711\n".
I tracked it down to the \Spiral\Telemetry\Monolog\TelemetryProcessor, added as per https://spiral.dev/docs/advanced-telemetry, which returns an array instead of a LogRecord.

How To Reproduce

Additional Info

Q A
Framework Version 3.13.0
PHP version 8.2
Operating system Linux
Monolog version 3.7.0
@devnev devnev added the Bug label Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant