|
1 | 1 | # CHANGELOG |
2 | 2 |
|
| 3 | +## 4.19.1 |
| 4 | + |
| 5 | +The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.19.1. |
| 6 | + |
| 7 | +### Bug Fixes |
| 8 | + |
| 9 | +- Don't cast metrics value to `float` in constructor, drop invalid metrics instead. [(#1981)](https://github.com/getsentry/sentry-php/pull/1981) |
| 10 | + |
| 11 | +## 4.19.0 |
| 12 | + |
| 13 | +The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.19.0. |
| 14 | + |
| 15 | +### Features |
| 16 | + |
| 17 | +- Add support for metrics. [(#1968)](https://github.com/getsentry/sentry-php/pull/1968) |
| 18 | +```php |
| 19 | +// Counter metric |
| 20 | +\Sentry\trace_metrics()->count('test-counter', 10, ['my-attribute' => 'foo']); |
| 21 | + |
| 22 | +// Gauge metric |
| 23 | +\Sentry\trace_metrics()->gauge('test-gauge', 50.0, ['my-attribute' => 'foo'], \Sentry\Unit::millisecond()); |
| 24 | + |
| 25 | +// Distribution metric |
| 26 | +\Sentry\trace_metrics()->distribution('test-distribution', 20.0, ['my-attribute' => 'foo'], \Sentry\Unit::kilobyte()); |
| 27 | + |
| 28 | +// Flush metrics |
| 29 | +\Sentry\trace_metrics()->flush(); |
| 30 | +``` |
| 31 | + |
| 32 | +### Bug Fixes |
| 33 | + |
| 34 | +- Add rate limiting for profiles and cron check-ins. [(#1970)](https://github.com/getsentry/sentry-php/pull/1970) |
| 35 | +- Fix Spotlight so it always registers the error integrations and emits transport logs even when no DSN is configured. [(#1964)](https://github.com/getsentry/sentry-php/pull/1964) |
| 36 | + |
| 37 | +## 4.18.1 |
| 38 | + |
| 39 | +The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.18.1. |
| 40 | + |
| 41 | +### Misc |
| 42 | + |
| 43 | +- Add `addFeatureFlag` helper function. [(#1960)](https://github.com/getsentry/sentry-php/pull/1960) |
| 44 | +```php |
| 45 | +\Sentry\addFeatureFlag("my.feature.enabled", true); |
| 46 | +``` |
| 47 | + |
| 48 | +## 4.18.0 |
| 49 | + |
| 50 | +The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.18.0. |
| 51 | + |
| 52 | +### Features |
| 53 | + |
| 54 | +- Add support for feature flags. [(#1951)](https://github.com/getsentry/sentry-php/pull/1951) |
| 55 | +```php |
| 56 | +\Sentry\SentrySdk::getCurrentHub()->configureScope(function (\Sentry\State\Scope $scope) { |
| 57 | + $scope->addFeatureFlag("my.feature.enabled", true); |
| 58 | +}); |
| 59 | +``` |
| 60 | +- Add more representations for log attributes instead of dropping them. [(#1950)](https://github.com/getsentry/sentry-php/pull/1950) |
| 61 | + |
| 62 | +### Misc |
| 63 | + |
| 64 | +- Merge log attributes in a separate method. [(#1931)](https://github.com/getsentry/sentry-php/pull/1931) |
| 65 | + |
| 66 | +## 4.17.1 |
| 67 | + |
| 68 | +The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.17.1. |
| 69 | + |
| 70 | +### Misc |
| 71 | + |
| 72 | +- Call `curl_close` only on PHP version 7.4 and below to prevent deprecation warnings. [(#1947)](https://github.com/getsentry/sentry-php/pull/1947) |
| 73 | + |
| 74 | +## 4.17.0 |
| 75 | + |
| 76 | +The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.17.0. |
| 77 | + |
| 78 | +### Bug Fixes |
| 79 | + |
| 80 | +- Empty strings will no longer display `<encoding error>` when serialized. [(#1940)](https://github.com/getsentry/sentry-php/pull/1940) |
| 81 | + |
| 82 | +### Misc |
| 83 | + |
| 84 | +- Remove `symfony/phpunit-bridge` as a dev dependency. [(#1930)](https://github.com/getsentry/sentry-php/pull/1930) |
| 85 | +- Update `sentry.origin` to be consistent with other SDKs. [(#1938)](https://github.com/getsentry/sentry-php/pull/1938) |
| 86 | + |
3 | 87 | ## 4.16.0 |
4 | 88 |
|
5 | 89 | The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.16.0. |
|
0 commit comments