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 2
2
3
3
## Unreleased
4
4
5
+ - Fix not setting the correct SDK ID and version when running the ` sentry:test ` command (#582 )
6
+
5
7
## 2.14.0
6
8
7
9
- 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 7
7
use Illuminate \Support \Str ;
8
8
use Psr \Log \AbstractLogger ;
9
9
use Sentry \ClientBuilder ;
10
+ use Sentry \Laravel \Version ;
10
11
use Sentry \State \Hub ;
11
12
use Sentry \State \HubInterface ;
12
13
use Sentry \Tracing \SpanContext ;
@@ -99,6 +100,10 @@ public function handle(): int
99
100
return 1 ;
100
101
}
101
102
103
+ // Set the Laravel SDK identifier and version
104
+ $ clientBuilder ->setSdkIdentifier (Version::SDK_IDENTIFIER );
105
+ $ clientBuilder ->setSdkVersion (Version::SDK_VERSION );
106
+
102
107
// We set a logger so we can surface errors thrown internally by the SDK
103
108
$ clientBuilder ->setLogger (new class ($ this ) extends AbstractLogger {
104
109
private $ command ;
You can’t perform that action at this time.
0 commit comments