We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d469fe commit c00186dCopy full SHA for c00186d
src/Sentry/Laravel/Tracing/ServiceProvider.php
@@ -61,6 +61,12 @@ public function register(): void
61
$this->app->singleton(Middleware::class, function () {
62
$continueAfterResponse = ($this->getTracingConfig()['continue_after_response'] ?? true) === true;
63
64
+ // Lumen introduced the `terminating` method in version 9.1.4.
65
+ // We check for it's existence and disable the continue after response feature if it's not available.
66
+ if (!method_exists($this->app, 'terminating')) {
67
+ $continueAfterResponse = false;
68
+ }
69
+
70
return new Middleware($this->app, $continueAfterResponse);
71
});
72
}
0 commit comments