Skip to content

Commit 0068471

Browse files
authored
Prepare 4.19.0 (#1976)
1 parent 43cc60d commit 0068471

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,31 @@
11
# CHANGELOG
22

3+
## 4.19.0
4+
5+
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.19.0.
6+
7+
### Features
8+
9+
- Add support for metrics. [(#1968)](https://github.com/getsentry/sentry-php/pull/1968)
10+
```php
11+
// Counter metric
12+
\Sentry\trace_metrics()->count('test-counter', 10, ['my-attribute' => 'foo']);
13+
14+
// Gauge metric
15+
\Sentry\trace_metrics()->gauge('test-gauge', 50.0, ['my-attribute' => 'foo'], \Sentry\Unit::millisecond());
16+
17+
// Distribution metric
18+
\Sentry\trace_metrics()->distribution('test-distribution', 20.0, ['my-attribute' => 'foo'], \Sentry\Unit::kilobyte());
19+
20+
// Flush metrics
21+
\Sentry\trace_metrics()->flush();
22+
```
23+
24+
### Bug Fixes
25+
26+
- Add rate limiting for profiles and cron check-ins. [(#1970)](https://github.com/getsentry/sentry-php/pull/1970)
27+
- 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)
28+
329
## 4.18.1
430

531
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.18.1.

0 commit comments

Comments
 (0)