Skip to content

Commit

Permalink
feat: always call config resolver preparation
Browse files Browse the repository at this point in the history
  • Loading branch information
owenvoke committed Jul 23, 2024
1 parent fd12161 commit a61aac4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/LaravelTelemetryServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ public function boot(): void
'telemetry',
);

$this->app->beforeResolving(LoggerProviderInterface::class, $this->prepareConfigResolver(...));
$this->app->beforeResolving(MeterProviderInterface::class, $this->prepareConfigResolver(...));
$this->app->beforeResolving(TracerProviderInterface::class, $this->prepareConfigResolver(...));
$this->prepareConfigResolver();

$this->callAfterResolving(Dispatcher::class, function (Dispatcher $event) {
if ($this->app->make(Repository::class)->get('telemetry.sdk.disabled')) {
Expand Down

0 comments on commit a61aac4

Please sign in to comment.