Skip to content

Commit fe691ea

Browse files
author
getsentry-bot
committed
Merge branch 'release/2.14.1'
2 parents b9bb0e3 + 5c696da commit fe691ea

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

CHANGELOG.md

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

33
## Unreleased
44

5+
## 2.14.1
6+
7+
- Fix not setting the correct SDK ID and version when running the `sentry:test` command (#582)
8+
59
## 2.14.0
610

711
- Fix not listening to queue events because `QueueManager` is registered as `queue` in the container and not by it's class name (#568)

src/Sentry/Laravel/Console/TestCommand.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Illuminate\Support\Str;
88
use Psr\Log\AbstractLogger;
99
use Sentry\ClientBuilder;
10+
use Sentry\Laravel\Version;
1011
use Sentry\State\Hub;
1112
use Sentry\State\HubInterface;
1213
use Sentry\Tracing\SpanContext;
@@ -99,6 +100,10 @@ public function handle(): int
99100
return 1;
100101
}
101102

103+
// Set the Laravel SDK identifier and version
104+
$clientBuilder->setSdkIdentifier(Version::SDK_IDENTIFIER);
105+
$clientBuilder->setSdkVersion(Version::SDK_VERSION);
106+
102107
// We set a logger so we can surface errors thrown internally by the SDK
103108
$clientBuilder->setLogger(new class($this) extends AbstractLogger {
104109
private $command;

src/Sentry/Laravel/Version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
final class Version
66
{
77
public const SDK_IDENTIFIER = 'sentry.php.laravel';
8-
public const SDK_VERSION = '2.14.0';
8+
public const SDK_VERSION = '2.14.1';
99
}

0 commit comments

Comments
 (0)