Skip to content

Commit

Permalink
Update Sentry SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
msmakouz committed Dec 11, 2023
1 parent 7e05498 commit 7f58855
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"php": ">=8.1",
"spiral/boot": "^3.0",
"spiral/snapshots": "^3.0",
"sentry/sentry": "^3.1",
"sentry/sentry": "^4.0",
"php-http/curl-client": "^2.3.1"
},
"require-dev": {
Expand Down
8 changes: 8 additions & 0 deletions src/Bootloader/ClientBootloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,21 @@ public function init(EnvironmentInterface $env): void

private function createClient(SentryConfig $config): ClientInterface
{
/**
* @psalm-suppress InternalClass
* @psalm-suppress InternalMethod
*/
$builder = ClientBuilder::create([
'dsn' => $config->getDSN(),
]);

/** @psalm-suppress InternalMethod */
$builder->setSdkIdentifier(Version::SDK_IDENTIFIER);

/** @psalm-suppress InternalMethod */
$builder->setSdkVersion(Version::SDK_VERSION);

/** @psalm-suppress InternalMethod */
$client = $builder->getClient();

SentrySdk::setCurrentHub(new Hub($client));
Expand Down
2 changes: 1 addition & 1 deletion src/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
final class Version
{
public const SDK_IDENTIFIER = 'sentry.php.spiral';
public const SDK_VERSION = '3.1.2';
public const SDK_VERSION = '4.1.0';
}

0 comments on commit 7f58855

Please sign in to comment.