From 15c37dd56a9ce8e6bec24e949f5c8befa4423fee Mon Sep 17 00:00:00 2001 From: Alex Bouma Date: Thu, 10 Apr 2025 11:23:59 +0200 Subject: [PATCH 1/2] Update comment missed in #1820 --- src/FrameBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FrameBuilder.php b/src/FrameBuilder.php index 71f82024f..328ba5119 100644 --- a/src/FrameBuilder.php +++ b/src/FrameBuilder.php @@ -74,7 +74,7 @@ public function buildFromBacktraceFrame(string $file, int $line, array $backtrac if (isset($backtraceFrame['class']) && isset($backtraceFrame['function'])) { $functionName = $backtraceFrame['class']; - // Optimization: skip doing regex if we don't have prefixes to strip + // Skip if no prefixes are set if ($this->options->getPrefixes()) { $prefixStrippedFunctionName = preg_replace_callback('/@anonymous\\x00([^:]+)(:.*)?/', function (array $matches) { return "@anonymous\x00" . $this->stripPrefixFromFilePath($this->options, $matches[1]) . ($matches[2] ?? ''); From c721c33060d1e9d13e000de7cbbff920834998d5 Mon Sep 17 00:00:00 2001 From: Alex Bouma Date: Thu, 10 Apr 2025 11:31:31 +0200 Subject: [PATCH 2/2] Add changelog entry --- CHANGELOG.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8724d8ffa..d401ef0a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # CHANGELOG +## 4.11.0 + +The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.11.0. + +### Features + +- Serialize `\DateTimeInterface` objects by default [(#1803)](https://github.com/getsentry/sentry-php/pull/1803) +- Add support for [Propagated Ramdom Value](https://develop.sentry.dev/sdk/telemetry/traces/#propagated-random-value) [(#1793)](https://github.com/getsentry/sentry-php/pull/1793) +- Use the `SENTRY_SPOTLIGHT` environment variable as the input for the `spotlight` configuration option [(#1789)](https://github.com/getsentry/sentry-php/pull/1789) + +### Bug Fixes + +- Fix cases where anonymous stacktrace frames did not get their prefixes stripped [(#1820)](https://github.com/getsentry/sentry-php/pull/1820) +- Fix Guzzle middleware not setting the span it created as the current span, which resulted in nesting issues in the trace view [(#1801)](https://github.com/getsentry/sentry-php/pull/1801) + ## 4.10.0 The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.10.0.