Skip to content

Commit d4b484e

Browse files
committed
Renamed files
1 parent b62e7ef commit d4b484e

File tree

16 files changed

+24
-28
lines changed

16 files changed

+24
-28
lines changed

.github/workflows/php.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
'Instrumentation/MySqli',
4242
'Instrumentation/OpenAIPHP',
4343
'Instrumentation/PDO',
44-
'Instrumentation/PhpOpcache',
44+
'Instrumentation/Opcache',
4545
'Instrumentation/PostgreSql',
4646
# Sort PSRs numerically.
4747
'Instrumentation/Psr3',
@@ -85,7 +85,7 @@ jobs:
8585
php-version: 8.1
8686
- project: 'Instrumentation/PostgreSql'
8787
php-version: 8.1
88-
- project: 'Instrumentation/PhpOpcache'
88+
- project: 'Instrumentation/Opcache'
8989
- project: 'Instrumentation/Session'
9090
php-version: 8.1
9191
steps:

.gitsplit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ splits:
4444
target: "https://${GH_TOKEN}@github.com/opentelemetry-php/contrib-auto-openai.git"
4545
- prefix: "src/Instrumentation/PDO"
4646
target: "https://${GH_TOKEN}@github.com/opentelemetry-php/contrib-auto-pdo.git"
47-
- prefix: "src/Instrumentation/PhpOpcache"
47+
- prefix: "src/Instrumentation/opcache"
4848
target: "https://${GH_TOKEN}@github.com/opentelemetry-php/contrib-auto-opcache.git"
4949
- prefix: "src/Instrumentation/PostgreSql"
5050
target: "https://${GH_TOKEN}@github.com/opentelemetry-php/contrib-auto-postgresql.git"

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"OpenTelemetry\\Contrib\\Instrumentation\\MySqli\\": "src/Instrumentation/MySqli/src",
3434
"OpenTelemetry\\Contrib\\Instrumentation\\OpenAIPHP\\": "src/Instrumentation/OpenAIPHP/src",
3535
"OpenTelemetry\\Contrib\\Instrumentation\\PDO\\": "src/Instrumentation/PDO/src",
36-
"OpenTelemetry\\Contrib\\Instrumentation\\PhpOpcache\\": "src/Instrumentation/PhpOpcache/src",
36+
"OpenTelemetry\\Contrib\\Instrumentation\\Opcache\\": "src/Instrumentation/Opcache/src",
3737
"OpenTelemetry\\Contrib\\Instrumentation\\Psr3\\": "src/Instrumentation/Psr3/src",
3838
"OpenTelemetry\\Contrib\\Instrumentation\\Psr6\\": "src/Instrumentation/Psr6/src",
3939
"OpenTelemetry\\Contrib\\Instrumentation\\Psr14\\": "src/Instrumentation/Psr14/src",
@@ -76,7 +76,7 @@
7676
"src/Instrumentation/MySqli/_register.php",
7777
"src/Instrumentation/OpenAIPHP/_register.php",
7878
"src/Instrumentation/PDO/_register.php",
79-
"src/Instrumentation/phpOpcache/_register.php",
79+
"src/Instrumentation/Opcache/_register.php",
8080
"src/Instrumentation/Psr3/_register.php",
8181
"src/Instrumentation/Psr6/_register.php",
8282
"src/Instrumentation/Psr14/_register.php",
@@ -115,7 +115,7 @@
115115
"OpenTelemetry\\Tests\\Instrumentation\\MySqli\\": "src/Instrumentation/MySqli/tests",
116116
"OpenTelemetry\\Contrib\\Instrumentation\\OpenAIPHP\\Tests\\": "src/Instrumentation/OpenAIPHP/tests",
117117
"OpenTelemetry\\Tests\\Instrumentation\\PDO\\": "src/Instrumentation/PDO/tests",
118-
"OpenTelemetry\\Tests\\Instrumentation\\PhpOpcache\\": "src/Instrumentation/PhpOpcache/tests",
118+
"OpenTelemetry\\Tests\\Instrumentation\\Opcache\\": "src/Instrumentation/Opcache/tests",
119119
"OpenTelemetry\\Tests\\Instrumentation\\Psr6\\": "src/Instrumentation/Psr6/tests",
120120
"OpenTelemetry\\Instrumentation\\Psr14\\Tests\\": "src/Instrumentation/Psr14/tests",
121121
"OpenTelemetry\\Tests\\Instrumentation\\Psr16\\": "src/Instrumentation/Psr16/tests",
@@ -155,7 +155,7 @@
155155
"open-telemetry/opentelemetry-auto-mysqli": "self.version",
156156
"open-telemetry/opentelemetry-auto-openai-php": "self.version",
157157
"open-telemetry/opentelemetry-auto-pdo": "self.version",
158-
"open-telemetry/opentelemetry-auto-phpOpcache": "self.version",
158+
"open-telemetry/opentelemetry-auto-opcache": "self.version",
159159
"open-telemetry/opentelemetry-auto-psr3": "self.version",
160160
"open-telemetry/opentelemetry-auto-psr6": "self.version",
161161
"open-telemetry/opentelemetry-auto-psr14": "self.version",
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/Instrumentation/PhpOpcache/README.md renamed to src/Instrumentation/Opcache/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[![Releases](https://img.shields.io/badge/releases-purple)](https://github.com/opentelemetry-php/contrib-auto-opcache/releases)
22
[![Issues](https://img.shields.io/badge/issues-pink)](https://github.com/open-telemetry/opentelemetry-php/issues)
3-
[![Source](https://img.shields.io/badge/source-contrib-green)](https://github.com/open-telemetry/opentelemetry-php-contrib/tree/main/src/Instrumentation/PhpOpcache)
3+
[![Source](https://img.shields.io/badge/source-contrib-green)](https://github.com/open-telemetry/opentelemetry-php-contrib/tree/main/src/Instrumentation/opcache)
44
[![Mirror](https://img.shields.io/badge/mirror-opentelemetry--php--contrib-blue)](https://github.com/opentelemetry-php/contrib-auto-opcache)
55
[![Latest Version](http://poser.pugx.org/open-telemetry/opentelemetry-auto-opcache/v/unstable)](https://packagist.org/packages/open-telemetry/opentelemetry-auto-opcache/)
66
[![Stable](http://poser.pugx.org/open-telemetry/opentelemetry-auto-opcache/v/stable)](https://packagist.org/packages/open-telemetry/opentelemetry-auto-opcache/)
@@ -57,10 +57,10 @@ The instrumentation is automatically registered via composer. No additional conf
5757
You can also manually add OPcache metrics to the current active span:
5858

5959
```php
60-
use OpenTelemetry\Contrib\Instrumentation\PhpOpcache\PhpOpcacheInstrumentation;
60+
use OpenTelemetry\Contrib\Instrumentation\opcache\opcacheInstrumentation;
6161

6262
// Add OPcache metrics to the current active span
63-
PhpOpcacheInstrumentation::addOpcacheMetricsToRootSpan();
63+
opcacheInstrumentation::addOpcacheMetricsToRootSpan();
6464
```
6565

6666
## Configuration

src/Instrumentation/PhpOpcache/_register.php renamed to src/Instrumentation/Opcache/_register.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
declare(strict_types=1);
44

5-
use OpenTelemetry\Contrib\Instrumentation\PhpOpcache\PhpOpcacheInstrumentation;
5+
use OpenTelemetry\Contrib\Instrumentation\opcache\OpcacheInstrumentation;
66
use OpenTelemetry\SDK\Sdk;
77

8-
if (class_exists(Sdk::class) && Sdk::isInstrumentationDisabled(PhpOpcacheInstrumentation::NAME) === true) {
8+
if (class_exists(Sdk::class) && Sdk::isInstrumentationDisabled(OpcacheInstrumentation::NAME) === true) {
99
return;
1010
}
1111

@@ -15,4 +15,4 @@
1515
return;
1616
}
1717

18-
PhpOpcacheInstrumentation::register();
18+
OpcacheInstrumentation::register();

src/Instrumentation/PhpOpcache/composer.json renamed to src/Instrumentation/Opcache/composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "open-telemetry/opentelemetry-auto-phpopcache",
2+
"name": "open-telemetry/opentelemetry-auto-opcache",
33
"description": "OpenTelemetry auto-instrumentation for PHP opcache",
44
"keywords": ["opentelemetry", "otel", "open-telemetry", "tracing", "opcache", "instrumentation"],
55
"type": "library",
@@ -29,15 +29,15 @@
2929
},
3030
"autoload": {
3131
"psr-4": {
32-
"OpenTelemetry\\Contrib\\Instrumentation\\PhpOpcache\\": "src/"
32+
"OpenTelemetry\\Contrib\\Instrumentation\\opcache\\": "src/"
3333
},
3434
"files": [
3535
"_register.php"
3636
]
3737
},
3838
"autoload-dev": {
3939
"psr-4": {
40-
"OpenTelemetry\\Tests\\Instrumentation\\PhpOpcache\\": "tests/"
40+
"OpenTelemetry\\Tests\\Instrumentation\\opcache\\": "tests/"
4141
}
4242
}
4343
}

0 commit comments

Comments
 (0)