Skip to content

Commit afb8528

Browse files
committed
Merge branch 'main' into xraySampler2
2 parents 3a8d4d0 + 8724759 commit afb8528

File tree

71 files changed

+3745
-258
lines changed

Some content is hidden

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

71 files changed

+3745
-258
lines changed

.github/dependabot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,12 @@ updates:
8989
- "/src/Instrumentation/Yii"
9090
- "/src/Logs/Monolog"
9191
- "/src/MetaPackages/opentelemetry"
92+
- "/src/Propagation/Instana"
9293
- "/src/Propagation/ServerTiming"
9394
- "/src/Propagation/TraceResponse"
9495
- "/src/ResourceDetectors/Azure"
9596
- "/src/ResourceDetectors/Container"
97+
- "/src/ResourceDetectors/DigitalOcean"
9698
- "/src/Sampler/RuleBased"
9799
- "/src/Shims/OpenTracing"
98100
- "/src/Symfony"

.github/workflows/dependabot-auto-approve.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ name: Dependabot auto-approve
22
on: pull_request
33

44
permissions:
5-
pull-requests: write
5+
contents: read
66

77
jobs:
88
dependabot:
9+
permissions:
10+
pull-requests: write
911
runs-on: ubuntu-latest
1012
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'open-telemetry/opentelemetry-php-contrib'
1113
steps:

.github/workflows/ossf-scorecard.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
persist-credentials: false
2525

26-
- uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
26+
- uses: ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2
2727
with:
2828
results_file: results.sarif
2929
results_format: sarif
@@ -42,6 +42,6 @@ jobs:
4242
# Upload the results to GitHub's code scanning dashboard (optional).
4343
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
4444
- name: "Upload to code-scanning"
45-
uses: github/codeql-action/upload-sarif@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
45+
uses: github/codeql-action/upload-sarif@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
4646
with:
4747
sarif_file: results.sarif

.github/workflows/php.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [ main ]
88

9+
permissions:
10+
contents: read
11+
912
concurrency:
1013
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1114
cancel-in-progress: true
@@ -22,6 +25,7 @@ jobs:
2225
project: [
2326
'Aws',
2427
'Context/Swoole',
28+
'Exporter/Instana',
2529
'Instrumentation/AwsSdk',
2630
'Instrumentation/CakePHP',
2731
'Instrumentation/CodeIgniter',
@@ -54,6 +58,7 @@ jobs:
5458
'Propagation/TraceResponse',
5559
'ResourceDetectors/Azure',
5660
'ResourceDetectors/Container',
61+
'ResourceDetectors/DigitalOcean',
5762
'Sampler/RuleBased',
5863
'Shims/OpenTracing',
5964
'Symfony',
@@ -63,8 +68,6 @@ jobs:
6368

6469
- project: 'Instrumentation/Curl'
6570
php-version: 8.1
66-
- project: 'Instrumentation/Doctrine'
67-
php-version: 8.1
6871
- project: 'Instrumentation/ExtAmqp'
6972
php-version: 8.1
7073
- project: 'Instrumentation/ExtRdKafka'

.github/workflows/split_monorepo.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
create:
1010
workflow_dispatch:
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
gitsplit:
1417
runs-on: ubuntu-latest

.github/workflows/update-dependabot-config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
# Allow manual triggering
88
workflow_dispatch:
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
update-dependabot-config:
1215
runs-on: ubuntu-latest

.gitsplit.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ splits:
1010
target: "https://${GH_TOKEN}@github.com/opentelemetry-php/opentelemetry-meta.git"
1111
- prefix: "src/Aws"
1212
target: "https://${GH_TOKEN}@github.com/opentelemetry-php/contrib-aws.git"
13+
- prefix: "src/Exporter/Instana"
14+
target: "https://${GH_TOKEN}@github.com/opentelemetry-php/contrib-exporter-instana.git"
1315
- prefix: "src/Symfony"
1416
target: "https://${GH_TOKEN}@github.com/opentelemetry-php/contrib-sdk-bundle.git"
1517
- prefix: "src/Instrumentation/CodeIgniter"
@@ -80,6 +82,8 @@ splits:
8082
target: "https://${GH_TOKEN}@github.com/opentelemetry-php/contrib-detector-azure.git"
8183
- prefix: "src/ResourceDetectors/Container"
8284
target: "https://${GH_TOKEN}@github.com/opentelemetry-php/contrib-detector-container.git"
85+
- prefix: "src/ResourceDetectors/DigitalOcean"
86+
target: "https://${GH_TOKEN}@github.com/opentelemetry-php/contrib-detector-digitalocean.git"
8387
- prefix: "src/Sampler/RuleBased"
8488
target: "https://${GH_TOKEN}@github.com/opentelemetry-php/contrib-sampler-rulebased.git"
8589
- prefix: "src/Shims/OpenTracing"

CONTRIBUTING.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1-
Maintainers ([@open-telemetry/php-maintainers](https://github.com/orgs/open-telemetry/teams/php-maintainers)):
1+
### Maintainers
22

3-
- [Bob Strecansky](https://github.com/bobstrecansky), Mailchimp
3+
- [Bob Strecansky](https://github.com/bobstrecansky), Intuit
4+
- [Brett McBride](https://github.com/brettmc), Deakin University
45

5-
Find more about the maintainer role in [community repository](https://github.com/open-telemetry/community/blob/master/community-membership.md#maintainer)
6+
For more information about the maintainer role, see the [community repository](https://github.com/open-telemetry/community/blob/main/guides/contributor/membership.md#maintainer).
67

7-
Approvers ([@open-telemetry/php-approvers](https://github.com/orgs/open-telemetry/teams/php-approvers)):
8+
### Approvers
89

9-
- [Levi Morrison](https://github.com/morrisonlevi), Datadog
10-
- [Austin Schoen](https://github.com/AustinSchoen), Mailchimp
11-
- [Beniamin Calota](https://github.com/beniamin), eMag
10+
- [Ago Allikmaa](https://github.com/agoallikmaa)
11+
- [Cedriz Ziel](https://github.com/cedricziel)
12+
- [Chris Lightfoot-Wild](https://github.com/ChrisLightfootWild)
1213

13-
Find more information about the approver role in the [community repository](https://github.com/open-telemetry/community/blob/master/community-membership.md#approver)
14+
For more information about the approver role, see the [community repository](https://github.com/open-telemetry/community/blob/main/guides/contributor/membership.md#approver).
1415

15-
Triagers ([@open-telemetry/php-triagers](https://github.com/orgs/open-telemetry/teams/php-triagers)):
16+
### Triagers
1617

17-
- [Jodee Varney](https://github.com/jodeev), Splunk
18+
19+
For more information about the triager role, see the [community repository](https://github.com/open-telemetry/community/blob/main/guides/contributor/membership.md#triager).
1820

1921
Find more information about the triager role in the [community repository](https://github.com/open-telemetry/community/blob/master/community-membership.md#triager)

composer.json

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,49 +17,67 @@
1717
"psr-4": {
1818
"OpenTelemetry\\Contrib\\Aws\\": "src/Aws/src",
1919
"OpenTelemetry\\Contrib\\Context\\Swoole\\": "src/Context/Swoole/src",
20+
"OpenTelemetry\\Contrib\\Exporter\\Instana\\": "src/Exporter/Instana/src",
21+
"OpenTelemetry\\Contrib\\Instrumentation\\CakePHP\\": "src/Instrumentation/CakePHP/src",
22+
"OpenTelemetry\\Contrib\\Instrumentation\\CodeIgniter\\": "src/Instrumentation/CodeIgniter/src",
2023
"OpenTelemetry\\Contrib\\Instrumentation\\Curl\\": "src/Instrumentation/Curl/src",
2124
"OpenTelemetry\\Contrib\\Instrumentation\\ExtAmqp\\": "src/Instrumentation/ExtAmqp/src",
2225
"OpenTelemetry\\Contrib\\Instrumentation\\ExtRdKafka\\": "src/Instrumentation/ExtRdKafka/src",
23-
"OpenTelemetry\\Contrib\\Instrumentation\\Laravel\\": "src/Instrumentation/Laravel/src",
26+
"OpenTelemetry\\Contrib\\Instrumentation\\Guzzle\\": "src/Instrumentation/Guzzle/src",
2427
"OpenTelemetry\\Contrib\\Instrumentation\\HttpAsyncClient\\": "src/Instrumentation/HttpAsyncClient/src",
2528
"OpenTelemetry\\Contrib\\Instrumentation\\IO\\": "src/Instrumentation/IO/src",
29+
"OpenTelemetry\\Contrib\\Instrumentation\\Laravel\\": "src/Instrumentation/Laravel/src",
2630
"OpenTelemetry\\Contrib\\Instrumentation\\MongoDB\\": "src/Instrumentation/MongoDB/src",
2731
"OpenTelemetry\\Contrib\\Instrumentation\\MySqli\\": "src/Instrumentation/MySqli/src",
32+
"OpenTelemetry\\Contrib\\Instrumentation\\OpenAIPHP\\": "src/Instrumentation/OpenAIPHP/src",
2833
"OpenTelemetry\\Contrib\\Instrumentation\\PDO\\": "src/Instrumentation/PDO/src",
2934
"OpenTelemetry\\Contrib\\Instrumentation\\Psr3\\": "src/Instrumentation/Psr3/src",
35+
"OpenTelemetry\\Contrib\\Instrumentation\\Psr6\\": "src/Instrumentation/Psr6/src",
36+
"OpenTelemetry\\Contrib\\Instrumentation\\Psr14\\": "src/Instrumentation/Psr14/src",
3037
"OpenTelemetry\\Contrib\\Instrumentation\\Psr15\\": "src/Instrumentation/Psr15/src",
38+
"OpenTelemetry\\Contrib\\Instrumentation\\Psr16\\": "src/Instrumentation/Psr16/src",
3139
"OpenTelemetry\\Contrib\\Instrumentation\\Psr18\\": "src/Instrumentation/Psr18/src",
3240
"OpenTelemetry\\Contrib\\Instrumentation\\ReactPHP\\": "src/Instrumentation/ReactPHP/src",
3341
"OpenTelemetry\\Contrib\\Instrumentation\\Slim\\": "src/Instrumentation/Slim/src",
3442
"OpenTelemetry\\Contrib\\Instrumentation\\Symfony\\": "src/Instrumentation/Symfony/src",
3543
"OpenTelemetry\\Contrib\\Instrumentation\\Wordpress\\": "src/Instrumentation/Wordpress/src",
36-
"OpenTelemetry\\Contrib\\Instrumentation\\CakePHP\\": "src/Instrumentation/CakePHP/src",
44+
"OpenTelemetry\\Contrib\\Instrumentation\\Yii\\": "src/Instrumentation/Yii/src",
3745
"OpenTelemetry\\Contrib\\Logs\\Monolog\\": "src/Logs/Monolog/src",
3846
"OpenTelemetry\\Contrib\\Propagation\\Instana\\": "src/Propagation/Instana/src",
3947
"OpenTelemetry\\Contrib\\Propagation\\ServerTiming\\": "src/Propagation/ServerTiming/src",
4048
"OpenTelemetry\\Contrib\\Propagation\\TraceResponse\\": "src/Propagation/TraceResponse/src",
4149
"OpenTelemetry\\Contrib\\Resource\\Detector\\Container\\": "src/ResourceDetectors/Container/src",
50+
"OpenTelemetry\\Contrib\\Resource\\Detector\\DigitalOcean\\": "src/ResourceDetectors/DigitalOcean/src",
4251
"OpenTelemetry\\Contrib\\Shim\\OpenTracing\\": "src/Shims/OpenTracing/src",
4352
"OpenTelemetry\\Contrib\\Symfony\\": "src/Symfony/src"
4453
},
4554
"files": [
55+
"src/Instrumentation/CakePHP/_register.php",
56+
"src/Instrumentation/CodeIgniter/_register.php",
4657
"src/Instrumentation/Curl/_register.php",
4758
"src/Instrumentation/ExtAmqp/_register.php",
4859
"src/Instrumentation/ExtRdKafka/_register.php",
60+
"src/Instrumentation/Guzzle/_register.php",
4961
"src/Instrumentation/HttpAsyncClient/_register.php",
5062
"src/Instrumentation/IO/_register.php",
5163
"src/Instrumentation/Laravel/_register.php",
5264
"src/Instrumentation/MongoDB/_register.php",
5365
"src/Instrumentation/MySqli/_register.php",
66+
"src/Instrumentation/OpenAIPHP/_register.php",
5467
"src/Instrumentation/PDO/_register.php",
5568
"src/Instrumentation/Psr3/_register.php",
69+
"src/Instrumentation/Psr6/_register.php",
70+
"src/Instrumentation/Psr14/_register.php",
5671
"src/Instrumentation/Psr15/_register.php",
72+
"src/Instrumentation/Psr16/_register.php",
5773
"src/Instrumentation/Psr18/_register.php",
5874
"src/Instrumentation/ReactPHP/_register.php",
5975
"src/Instrumentation/Slim/_register.php",
6076
"src/Instrumentation/Symfony/_register.php",
6177
"src/Instrumentation/Wordpress/_register.php",
62-
"src/ResourceDetectors/Container/_register.php"
78+
"src/Instrumentation/Yii/_register.php",
79+
"src/ResourceDetectors/Container/_register.php",
80+
"src/ResourceDetectors/DigitalOcean/_register.php"
6381
]
6482
},
6583
"autoload-dev": {
@@ -72,25 +90,37 @@
7290
"open-telemetry/contrib-aws": "self.version",
7391
"open-telemetry/contrib-sdk-bundle": "self.version",
7492
"open-telemetry/context-swoole": "self.version",
93+
"open-telemetry/opentelemetry-auto-cakephp": "self.version",
94+
"open-telemetry/opentelemetry-auto-codeigniter": "self.version",
7595
"open-telemetry/opentelemetry-auto-curl": "self.version",
76-
"open-telemetry/opentelemetry-auto-laravel": "self.version",
96+
"open-telemetry/opentelemetry-auto-ext-amqp": "self.version",
97+
"open-telemetry/opentelemetry-exporter-instana": "self.version",
98+
"open-telemetry/opentelemetry-auto-ext-rdkafka": "self.version",
99+
"open-telemetry/opentelemetry-auto-guzzle": "self.version",
77100
"open-telemetry/opentelemetry-auto-http-async": "self.version",
78101
"open-telemetry/opentelemetry-auto-io": "self.version",
102+
"open-telemetry/opentelemetry-auto-laravel": "self.version",
79103
"open-telemetry/opentelemetry-auto-mongodb": "self.version",
80104
"open-telemetry/opentelemetry-auto-mysqli": "self.version",
81105
"open-telemetry/opentelemetry-auto-pdo": "self.version",
106+
"open-telemetry/opentelemetry-auto-openai-php": "self.version",
82107
"open-telemetry/opentelemetry-auto-psr3": "self.version",
108+
"open-telemetry/opentelemetry-auto-psr6": "self.version",
109+
"open-telemetry/opentelemetry-auto-psr14": "self.version",
83110
"open-telemetry/opentelemetry-auto-psr15": "self.version",
111+
"open-telemetry/opentelemetry-auto-psr16": "self.version",
84112
"open-telemetry/opentelemetry-auto-psr18": "self.version",
85113
"open-telemetry/opentelemetry-auto-reactphp": "self.version",
86114
"open-telemetry/opentelemetry-auto-slim": "self.version",
87115
"open-telemetry/opentelemetry-auto-symfony": "self.version",
88116
"open-telemetry/opentelemetry-auto-wordpress": "self.version",
117+
"open-telemetry/opentelemetry-auto-yii": "self.version",
89118
"open-telemetry/opentelemetry-propagation-instana": "self.version",
90119
"open-telemetry/opentelemetry-propagation-server-timing": "self.version",
91120
"open-telemetry/opentelemetry-propagation-traceresponse": "self.version",
92121
"open-telemetry/opentelemetry-logger-monolog": "self.version",
93122
"open-telemetry/detector-container": "self.version",
123+
"open-telemetry/detector-digitalocean": "self.version",
94124
"open-telemetry/symfony-sdk-bundle": "self.version",
95125
"open-telemetry/opentracing-shim": "self.version",
96126
"open-telemetry/test-utils": "self.version"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
* text=auto
2+
3+
*.md diff=markdown
4+
*.php diff=php
5+
6+
/.gitattributes export-ignore
7+
/.gitignore export-ignore
8+
/.php-cs-fixer.php export-ignore
9+
/phpstan.neon.dist export-ignore
10+
/phpunit.xml.dist export-ignore
11+
/psalm.xml.dist export-ignore
12+
/tests export-ignore
13+
/.phan/ export-ignore

0 commit comments

Comments
 (0)