Skip to content

Commit 1a110bf

Browse files
authored
Prepare 4.4.0 (#1689)
1 parent 4301e89 commit 1a110bf

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

CHANGELOG.md

+58
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,63 @@
11
# CHANGELOG
22

3+
## 4.4.0
4+
5+
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.4.0.
6+
7+
### Features
8+
9+
- Add `metrics()->timing()` [(#1670)](https://github.com/getsentry/sentry-php/pull/1670)
10+
11+
This allows you to emit a distribution metric based on the duration of the provided callback.
12+
13+
```php
14+
use function Sentry\metrics;
15+
16+
metrics()->timing(
17+
key: 'my-metric',
18+
callback: fn() => doSomething(),
19+
);
20+
```
21+
22+
- Add `withMonitor()` [(#1679)](https://github.com/getsentry/sentry-php/pull/1679)
23+
24+
This wraps a callback into monitor check-ins.
25+
26+
```php
27+
use function Sentry\withMonitor;
28+
29+
withMonitor(
30+
slug: 'my-monitor',
31+
callback: fn () => doSomething(),
32+
monitorConfig: new MonitorConfig(...),
33+
);
34+
```
35+
36+
- Add new `failure_issue_threshold` and `recovery_threshold` configuration to `MonitorConfig` [(#1685)](https://github.com/getsentry/sentry-php/pull/1685)
37+
38+
- Add `TransactionContext::make()` and `SpanContext::make()` [(#1684)](https://github.com/getsentry/sentry-php/pull/1684)
39+
40+
```php
41+
use Sentry\Tracing\SpanContext;
42+
43+
$spanCpntext = SpanContext::make()
44+
->setOp('http.client')
45+
->setDescription('GET https://example.com')
46+
```
47+
- Add support for fluent use of `Transaction::setName()` [(#1687)](https://github.com/getsentry/sentry-php/pull/1687)
48+
49+
- Add support for the W3C `traceparent` header [(#1680)](https://github.com/getsentry/sentry-php/pull/1680)
50+
51+
### Bug Fixes
52+
53+
- Do not send an empty event if no metrics are in the bucket [(#1676)](https://github.com/getsentry/sentry-php/pull/1676)
54+
55+
- Fix the `http_ssl_verify_peer` option to set the correct value to `CURLOPT_SSL_VERIFYPEER` [(#1686)](https://github.com/getsentry/sentry-php/pull/1686)
56+
57+
### Misc
58+
59+
- Depreacted `UserDataBag::getSegment()` and `UserDataBag::setSegment()`. You may use a custom tag or context instead [(#1681)](https://github.com/getsentry/sentry-php/pull/1681)
60+
361
## 4.3.1
462

563
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.3.1.

0 commit comments

Comments
 (0)