From 78286c25aa9825da95c1d7c20760b6d107954254 Mon Sep 17 00:00:00 2001 From: Martin Linzmayer Date: Mon, 22 Sep 2025 16:47:10 +0200 Subject: [PATCH] ref(logs): add sentry.origin attribute to monolog handler --- src/Sentry/Laravel/Logs/LogsHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Sentry/Laravel/Logs/LogsHandler.php b/src/Sentry/Laravel/Logs/LogsHandler.php index 739b9a54..b3d8655f 100644 --- a/src/Sentry/Laravel/Logs/LogsHandler.php +++ b/src/Sentry/Laravel/Logs/LogsHandler.php @@ -112,7 +112,7 @@ protected function doWrite($record): void ), $record['message'], [], - array_merge($context, $record['extra']) + array_merge($context, $record['extra'], ['sentry.origin' => 'auto.logger.monolog']) ); }