Steps to reproduce
Install open-telemetry/opentelemetry-auto-laravel 1.0.0
And activate open-telemetry/opentelemetry-logger-monolog
final class LaravelLoggerCreating
{
public function __invoke(array $config)
{
$log = new Logger('test');
$otelHandler = new Handler(
Globals::loggerProvider(),
LogLevel::INFO
);
$log->pushHandler($otelHandler);
return $log;
}
}
There's no mechanism yet to allow disabling parts of the instrumentation, but this is something to consider on the back of #1422 - and that's coincidentally very close to what I'd like as part of "the future".
open-telemetry/opentelemetry-auto-laravel 1.0.0
Steps to reproduce Install open-telemetry/opentelemetry-auto-laravel 1.0.0 And activate open-telemetry/opentelemetry-logger-monolog
What is the expected behavior? I would expect an ability to use my own custom logger as it is described in docs.
What is the actual behavior? I see logs from open-telemetry/opentelemetry-auto-laravel 1.0.0 and from my logger (they are doubled actually)