File tree 1 file changed +2
-26
lines changed
static/app/gettingStartedDocs/php
1 file changed +2
-26
lines changed Original file line number Diff line number Diff line change @@ -61,31 +61,7 @@ use function \\Sentry\\metrics;
61
61
62
62
// Add 4 to a counter named 'hits'
63
63
metrics()->increment('hits', 4);
64
- metrics()->flush();
65
-
66
- // We recommend registering the flush call in a shutdown function
67
- register_shutdown_function(static fn () => metrics()->flush());
68
-
69
- // Or call flush in a Terminable Middleware
70
-
71
- use Closure;
72
- use Illuminate\\Http\\Request;
73
- use Symfony\\Component\\HttpFoundation\\Response;
74
-
75
- use function \\Sentry\\metrics;
76
-
77
- class SentryMetricsMiddleware
78
- {
79
- public function handle(Request $request, Closure $next): Response
80
- {
81
- return $next($request);
82
- }
83
-
84
- public function terminate(Request $request, Response $response): void
85
- {
86
- metrics()->flush();
87
- }
88
- }` ;
64
+ ` ;
89
65
90
66
const onboarding : OnboardingConfig = {
91
67
introduction : ( ) =>
@@ -188,7 +164,7 @@ const customMetricsOnboarding: OnboardingConfig = {
188
164
{
189
165
type : StepType . INSTALL ,
190
166
description : tct (
191
- 'You need a minimum version [codeVersionLaravel:4.0 .0] of the Laravel SDK and a minimum version [codeVersion:4.3.0] of the PHP SDK installed' ,
167
+ 'You need a minimum version [codeVersionLaravel:4.2 .0] of the Laravel SDK and a minimum version [codeVersion:4.3.0] of the PHP SDK installed' ,
192
168
{
193
169
codeVersionLaravel : < code /> ,
194
170
codeVersion : < code /> ,
You can’t perform that action at this time.
0 commit comments