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)
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(), );