Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit a502761

Browse files
committed
wip
1 parent 3476b28 commit a502761

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"open-telemetry/sdk": "*",
2020
"open-telemetry/exporter-otlp": "*",
2121
"ext-opentelemetry": "*",
22-
"open-telemetry/opentelemetry-auto-laravel": "^0.0.25"
22+
"open-telemetry/opentelemetry-auto-laravel": "^1.1.1"
2323
},
2424
"require-dev": {
2525
"orchestra/testbench": "^9.0",
@@ -50,7 +50,8 @@
5050
},
5151
"config": {
5252
"allow-plugins": {
53-
"php-http/discovery": true
53+
"php-http/discovery": true,
54+
"tbachert/spi": true
5455
}
5556
}
5657
}

src/Support/CarbonClock.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
use Carbon\Carbon;
66
use Carbon\CarbonImmutable;
77
use Carbon\CarbonInterface;
8-
use OpenTelemetry\SDK\Common\Time\ClockInterface;
9-
use OpenTelemetry\SDK\Common\Time\SystemClock;
8+
use OpenTelemetry\API\Common\Time\Clock;
9+
use OpenTelemetry\API\Common\Time\ClockInterface;
1010

1111
class CarbonClock implements ClockInterface
1212
{
13-
protected SystemClock $systemClock;
13+
protected ClockInterface $systemClock;
1414

1515
public function __construct()
1616
{
17-
$this->systemClock = new SystemClock();
17+
$this->systemClock = Clock::getDefault();
1818
}
1919

2020
public function now(): int

0 commit comments

Comments
 (0)