Skip to content

Commit e494ac2

Browse files
Laravel: use Configuration\ConfigProperties API for instrumentation registration.
1 parent d5cdeca commit e494ac2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Instrumentation/Laravel/src/LaravelInstrumentation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace OpenTelemetry\Contrib\Instrumentation\Laravel;
66

77
use Nevay\SPI\ServiceLoader;
8-
use OpenTelemetry\API\Instrumentation\AutoInstrumentation\ConfigurationRegistry;
8+
use OpenTelemetry\API\Configuration\ConfigProperties;
99
use OpenTelemetry\API\Instrumentation\AutoInstrumentation\Context;
1010
use OpenTelemetry\API\Instrumentation\AutoInstrumentation\HookManagerInterface;
1111
use OpenTelemetry\API\Instrumentation\AutoInstrumentation\Instrumentation;
@@ -17,7 +17,7 @@ class LaravelInstrumentation implements Instrumentation
1717
{
1818
public const INSTRUMENTATION_NAME = 'io.opentelemetry.contrib.php.laravel';
1919

20-
public function register(HookManagerInterface $hookManager, ConfigurationRegistry $configuration, Context $context): void
20+
public function register(HookManagerInterface $hookManager, ConfigProperties $configuration, Context $context): void
2121
{
2222
$config = $configuration->get(LaravelConfiguration::class) ?? LaravelConfiguration::default();
2323

0 commit comments

Comments
 (0)