Skip to content

Commit 679cd97

Browse files
authored
feat(metrics): add metrics for Laravel (#1072)
1 parent 0a2e1f6 commit 679cd97

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"require": {
2626
"php": "^7.2 | ^8.0",
2727
"illuminate/support": "^6.0 | ^7.0 | ^8.0 | ^9.0 | ^10.0 | ^11.0 | ^12.0",
28-
"sentry/sentry": "^4.18.0",
28+
"sentry/sentry": "^4.19.0",
2929
"symfony/psr-http-message-bridge": "^1.0 | ^2.0 | ^6.0 | ^7.0",
3030
"nyholm/psr7": "^1.0"
3131
},

src/Sentry/Laravel/Integration.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use Sentry\ExceptionMechanism;
1010
use Sentry\Laravel\Integration\ModelViolations as ModelViolationReports;
1111
use Sentry\Logs\Logs;
12+
use Sentry\Metrics\TraceMetrics;
1213
use Sentry\SentrySdk;
1314
use Sentry\Tracing\TransactionSource;
1415
use Throwable;
@@ -123,6 +124,7 @@ public static function flushEvents(): void
123124
$client->flush();
124125

125126
Logs::getInstance()->flush();
127+
TraceMetrics::getInstance()->flush();
126128
}
127129
}
128130

0 commit comments

Comments
 (0)