From b4fd0dbe070af6ca4e88ec7920d008975d4aa862 Mon Sep 17 00:00:00 2001 From: Alex Bouma Date: Tue, 4 Jun 2024 18:59:07 +0200 Subject: [PATCH] Prepare 4.8.0 (#1746) --- CHANGELOG.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f10b9a2f..53673de85 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,35 @@ # CHANGELOG +## 4.8.0 + +The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.8.0. + +### Features + +- Add timing span when emiting a timing metric [(#1717)](https://github.com/getsentry/sentry-php/pull/1717) + + ```php + use function Sentry\metrics; + + // This will now both emit a distribution metric and a span with the "expensive-operation" key + metrics()->timing( + key: 'expensive-operation', + callback: fn() => doExpensiveOperation(), + ); + ``` + +### Bug Fixes + +- Fix missing data on HTTP spans [(#1735)](https://github.com/getsentry/sentry-php/pull/1735) +- Test span sampled status before creating child spans [(#1740)](https://github.com/getsentry/sentry-php/pull/1740) + +### Misc + +- Implement fast path for ignoring errors [(#1737)](https://github.com/getsentry/sentry-php/pull/1737) +- Add array shape for better autocomplete of `Sentry\init` function [(#1738)](https://github.com/getsentry/sentry-php/pull/1738) +- Represent callable strings as strings [(#1741)](https://github.com/getsentry/sentry-php/pull/1741) +- Use `AWS_LAMBDA_FUNCTION_VERSION` environment variable for release if available [(#1742)](https://github.com/getsentry/sentry-php/pull/1742) + ## 4.7.0 The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.7.0.