Skip to content

Commit bb09763

Browse files
Laravel: PoC composer changes for SPI.
1 parent f3428c5 commit bb09763

File tree

1 file changed

+36
-10
lines changed

1 file changed

+36
-10
lines changed

src/Instrumentation/Laravel/composer.json

Lines changed: 36 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,16 @@
99
"minimum-stability": "dev",
1010
"prefer-stable": true,
1111
"require": {
12-
"php": "^8.0",
12+
"php": "^8.1",
1313
"ext-json": "*",
1414
"ext-opentelemetry": "*",
15-
"laravel/framework": "^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0",
16-
"open-telemetry/api": "^1.0",
17-
"open-telemetry/sem-conv": "^1.24"
15+
"laravel/framework": "^10.0 || ^11.0",
16+
"open-telemetry/opentelemetry": "dev-auto-instrumentation-registration"
1817
},
1918
"require-dev": {
2019
"friendsofphp/php-cs-fixer": "^3.50",
2120
"guzzlehttp/guzzle": "*",
2221
"nunomaduro/collision": "*",
23-
"open-telemetry/sdk": "^1.0",
2422
"orchestra/testbench": ">=7.41.3",
2523
"phan/phan": "^5.0",
2624
"php-http/mock-client": "*",
@@ -34,21 +32,49 @@
3432
"autoload": {
3533
"psr-4": {
3634
"OpenTelemetry\\Contrib\\Instrumentation\\Laravel\\": "src/"
37-
},
38-
"files": [
39-
"_register.php"
40-
]
35+
}
4136
},
4237
"autoload-dev": {
4338
"psr-4": {
4439
"OpenTelemetry\\Tests\\Contrib\\Instrumentation\\Laravel\\": "tests/"
4540
}
4641
},
42+
"extra": {
43+
"spi": {
44+
"OpenTelemetry\\Config\\SDK\\Configuration\\ComponentProvider": [
45+
"OpenTelemetry\\Contrib\\Instrumentation\\Laravel\\LaravelComponentProvider"
46+
],
47+
"OpenTelemetry\\API\\Instrumentation\\AutoInstrumentation\\Instrumentation": [
48+
"OpenTelemetry\\Contrib\\Instrumentation\\Laravel\\LaravelInstrumentation"
49+
],
50+
"OpenTelemetry\\Contrib\\Instrumentation\\Laravel\\Hooks\\Hook": [
51+
"OpenTelemetry\\Contrib\\Instrumentation\\Laravel\\Hooks\\Illuminate\\Console\\Command",
52+
53+
"OpenTelemetry\\Contrib\\Instrumentation\\Laravel\\Hooks\\Illuminate\\Contracts\\Console\\Kernel",
54+
"OpenTelemetry\\Contrib\\Instrumentation\\Laravel\\Hooks\\Illuminate\\Contracts\\Http\\Kernel",
55+
"OpenTelemetry\\Contrib\\Instrumentation\\Laravel\\Hooks\\Illuminate\\Contracts\\Queue\\Queue",
56+
57+
"OpenTelemetry\\Contrib\\Instrumentation\\Laravel\\Hooks\\Illuminate\\Foundation\\Console\\ServeCommand",
58+
"OpenTelemetry\\Contrib\\Instrumentation\\Laravel\\Hooks\\Illuminate\\Foundation\\Application",
59+
60+
"OpenTelemetry\\Contrib\\Instrumentation\\Laravel\\Hooks\\Illuminate\\Queue\\Queue",
61+
"OpenTelemetry\\Contrib\\Instrumentation\\Laravel\\Hooks\\Illuminate\\Queue\\SyncQueue",
62+
"OpenTelemetry\\Contrib\\Instrumentation\\Laravel\\Hooks\\Illuminate\\Queue\\Worker"
63+
]
64+
}
65+
},
66+
"repositories": [
67+
{
68+
"type": "vcs",
69+
"url": "https://github.com/brettmc/opentelemetry-php"
70+
}
71+
],
4772
"config": {
4873
"lock": false,
4974
"sort-packages": true,
5075
"allow-plugins": {
51-
"php-http/discovery": false
76+
"php-http/discovery": false,
77+
"tbachert/spi": true
5278
}
5379
}
5480
}

0 commit comments

Comments
 (0)