Skip to content

Commit 9788fdd

Browse files
Merge remote-tracking branch 'upstream/main' into spi/laravel
2 parents 3d9beb3 + 5e55dcb commit 9788fdd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+138
-59
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ all-checks: style validate phan psalm phpstan test ## All checks + tests
1515
all: update all-checks ## Everything
1616
all-lowest: update-lowest all-checks ## Everything, with lowest supported versions
1717
build: ## Build image
18-
$(DOCKER_COMPOSE) build --build-arg PHP_VERSION php
18+
$(DOCKER_COMPOSE) build --build-arg PHP_VERSION=${PHP_VERSION} php
1919
install: ## Install dependencies
2020
$(DC_RUN_PHP) env XDEBUG_MODE=off composer install
2121
update: ## Update dependencies

docker/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ USER root
55

66
RUN install-php-extensions \
77
opentelemetry \
8-
mongodb
8+
mongodb \
9+
amqp
910

1011
USER php

examples/instrumentation/Wordpress/composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"type": "project",
55
"minimum-stability": "beta",
66
"require": {
7-
"open-telemetry/opentelemetry-auto-wordpress": "^0.0.5",
8-
"open-telemetry/sdk": "^1.0@beta",
9-
"open-telemetry/exporter-otlp": "^1.0@beta",
7+
"open-telemetry/opentelemetry-auto-wordpress": "^0.0.15",
8+
"open-telemetry/sdk": "^1.0",
9+
"open-telemetry/exporter-otlp": "^1.0",
1010
"php-http/guzzle7-adapter": "^1.0"
1111
},
1212
"config": {

src/Instrumentation/CakePHP/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"ext-opentelemetry": "*",
1414
"cakephp/cakephp": "^4 || ^5",
1515
"open-telemetry/api": "^1.0",
16-
"open-telemetry/sem-conv": "^1.23"
16+
"open-telemetry/sem-conv": "^1.24"
1717
},
1818
"require-dev": {
1919
"friendsofphp/php-cs-fixer": "^3",

src/Instrumentation/CakePHP/src/CakePHPInstrumentation.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ class CakePHPInstrumentation
2222

2323
public static function register(): void
2424
{
25-
$instrumentation = new CachedInstrumentation('io.opentelemetry.contrib.php.cakephp');
25+
$instrumentation = new CachedInstrumentation(
26+
'io.opentelemetry.contrib.php.cakephp',
27+
null,
28+
'https://opentelemetry.io/schemas/1.24.0'
29+
);
2630

2731
hook(
2832
Controller::class,

src/Instrumentation/CodeIgniter/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"ext-opentelemetry": "*",
1414
"codeigniter4/framework": "^4.3",
1515
"open-telemetry/api": "^1.0",
16-
"open-telemetry/sem-conv": "^1.23"
16+
"open-telemetry/sem-conv": "^1.24"
1717
},
1818
"require-dev": {
1919
"friendsofphp/php-cs-fixer": "^3.50",

src/Instrumentation/CodeIgniter/src/CodeIgniterInstrumentation.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ class CodeIgniterInstrumentation
2323

2424
public static function register(): void
2525
{
26-
$instrumentation = new CachedInstrumentation('io.opentelemetry.contrib.php.codeigniter');
26+
$instrumentation = new CachedInstrumentation(
27+
'io.opentelemetry.contrib.php.codeigniter',
28+
null,
29+
'https://opentelemetry.io/schemas/1.24.0'
30+
);
2731

2832
// The method that creates request/response/controller objects is in the same class as the method
2933
// that handles them, and they are not passed as method parameters, but rather stored in private

src/Instrumentation/ExtAmqp/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"ext-amqp": "*",
1414
"ext-opentelemetry": "*",
1515
"open-telemetry/api": "^1",
16-
"open-telemetry/sem-conv": "^1.23"
16+
"open-telemetry/sem-conv": "^1.24"
1717
},
1818
"require-dev": {
1919
"friendsofphp/php-cs-fixer": "^3",

src/Instrumentation/ExtAmqp/src/ExtAmqpInstrumentation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static function register(): void
2727
$instrumentation = new CachedInstrumentation(
2828
'io.opentelemetry.contrib.php.ext_amqp',
2929
InstalledVersions::getVersion('open-telemetry/opentelemetry-auto-ext-amqp'),
30-
TraceAttributes::SCHEMA_URL,
30+
'https://opentelemetry.io/schemas/1.24.0',
3131
);
3232

3333
hook(

src/Instrumentation/Guzzle/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"php": "^8.0",
1313
"ext-opentelemetry": "*",
1414
"open-telemetry/api": "^1.0",
15-
"open-telemetry/sem-conv": "^1.23",
15+
"open-telemetry/sem-conv": "^1.24",
1616
"guzzlehttp/guzzle": "^7"
1717
},
1818
"require-dev": {

0 commit comments

Comments
 (0)