Skip to content

Commit

Permalink
Merge branch 'release/2.14.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
getsentry-bot committed Oct 10, 2022
2 parents b9bb0e3 + 5c696da commit fe691ea
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,10 @@

## Unreleased

## 2.14.1

- Fix not setting the correct SDK ID and version when running the `sentry:test` command (#582)

## 2.14.0

- Fix not listening to queue events because `QueueManager` is registered as `queue` in the container and not by it's class name (#568)
Expand Down
5 changes: 5 additions & 0 deletions src/Sentry/Laravel/Console/TestCommand.php
Expand Up @@ -7,6 +7,7 @@
use Illuminate\Support\Str;
use Psr\Log\AbstractLogger;
use Sentry\ClientBuilder;
use Sentry\Laravel\Version;
use Sentry\State\Hub;
use Sentry\State\HubInterface;
use Sentry\Tracing\SpanContext;
Expand Down Expand Up @@ -99,6 +100,10 @@ public function handle(): int
return 1;
}

// Set the Laravel SDK identifier and version
$clientBuilder->setSdkIdentifier(Version::SDK_IDENTIFIER);
$clientBuilder->setSdkVersion(Version::SDK_VERSION);

// We set a logger so we can surface errors thrown internally by the SDK
$clientBuilder->setLogger(new class($this) extends AbstractLogger {
private $command;
Expand Down
2 changes: 1 addition & 1 deletion src/Sentry/Laravel/Version.php
Expand Up @@ -5,5 +5,5 @@
final class Version
{
public const SDK_IDENTIFIER = 'sentry.php.laravel';
public const SDK_VERSION = '2.14.0';
public const SDK_VERSION = '2.14.1';
}

0 comments on commit fe691ea

Please sign in to comment.