File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
src/Sentry/Laravel/Console Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 22
33## Unreleased
44
5+ - Fix not setting the correct SDK ID and version when running the ` sentry:test ` command (#582 )
6+
57## 2.14.0
68
79- Fix not listening to queue events because ` QueueManager ` is registered as ` queue ` in the container and not by it's class name (#568 )
Original file line number Diff line number Diff line change 77use Illuminate \Support \Str ;
88use Psr \Log \AbstractLogger ;
99use Sentry \ClientBuilder ;
10+ use Sentry \Laravel \Version ;
1011use Sentry \State \Hub ;
1112use Sentry \State \HubInterface ;
1213use 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 ;
You can’t perform that action at this time.
0 commit comments