Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/MonitorServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ public function register(): void
{
$this->mergeConfigFrom(__DIR__.'/../config/monitor.php', 'monitor');

$this->app->singleton(Monitor::class, fn () => new Monitor);
$this->app->singleton(Trace::class, fn () => new Trace);
$this->app->singleton(LogTimer::class, fn () => new LogTimer);
$this->app->singleton(CircuitBreaker::class, fn () => new CircuitBreaker);
$this->app->singleton(ControlledContext::class, fn () => new ControlledContext);
$this->app->scoped(Monitor::class, fn () => new Monitor);
$this->app->scoped(Trace::class, fn () => new Trace);
$this->app->scoped(LogTimer::class, fn () => new LogTimer);
$this->app->scoped(CircuitBreaker::class, fn () => new CircuitBreaker);
$this->app->scoped(ControlledContext::class, fn () => new ControlledContext);

// Remove automatic logging channel merging - users should configure their own channels
}
Expand Down