File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/Sentry/Laravel/Console Expand file tree Collapse file tree 1 file changed +6
-0
lines changed 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 ;
@@ -93,12 +94,17 @@ public function handle(): int
93
94
'environment ' => $ laravelClient === null ? null : $ laravelClient ->getOptions ()->getEnvironment (),
94
95
'traces_sample_rate ' => 1.0 ,
95
96
]);
97
+
96
98
} catch (Exception $ e ) {
97
99
$ this ->error ($ e ->getMessage ());
98
100
99
101
return 1 ;
100
102
}
101
103
104
+ // Set the Laravel SDK identifier and version
105
+ $ clientBuilder ->setSdkIdentifier (Version::SDK_IDENTIFIER );
106
+ $ clientBuilder ->setSdkVersion (Version::SDK_VERSION );
107
+
102
108
// We set a logger so we can surface errors thrown internally by the SDK
103
109
$ clientBuilder ->setLogger (new class ($ this ) extends AbstractLogger {
104
110
private $ command ;
You can’t perform that action at this time.
0 commit comments