Skip to content

Commit

Permalink
Prepare 4.4.0 (#1689)
Browse files Browse the repository at this point in the history
  • Loading branch information
cleptric committed Jan 23, 2024
1 parent 4301e89 commit 1a110bf
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,63 @@
# CHANGELOG

## 4.4.0

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

### Features

- Add `metrics()->timing()` [(#1670)](https://github.com/getsentry/sentry-php/pull/1670)

This allows you to emit a distribution metric based on the duration of the provided callback.

```php
use function Sentry\metrics;

metrics()->timing(
key: 'my-metric',
callback: fn() => doSomething(),
);
```

- Add `withMonitor()` [(#1679)](https://github.com/getsentry/sentry-php/pull/1679)

This wraps a callback into monitor check-ins.

```php
use function Sentry\withMonitor;

withMonitor(
slug: 'my-monitor',
callback: fn () => doSomething(),
monitorConfig: new MonitorConfig(...),
);
```

- Add new `failure_issue_threshold` and `recovery_threshold` configuration to `MonitorConfig` [(#1685)](https://github.com/getsentry/sentry-php/pull/1685)

- Add `TransactionContext::make()` and `SpanContext::make()` [(#1684)](https://github.com/getsentry/sentry-php/pull/1684)

```php
use Sentry\Tracing\SpanContext;

$spanCpntext = SpanContext::make()
->setOp('http.client')
->setDescription('GET https://example.com')
```
- Add support for fluent use of `Transaction::setName()` [(#1687)](https://github.com/getsentry/sentry-php/pull/1687)

- Add support for the W3C `traceparent` header [(#1680)](https://github.com/getsentry/sentry-php/pull/1680)

### Bug Fixes

- Do not send an empty event if no metrics are in the bucket [(#1676)](https://github.com/getsentry/sentry-php/pull/1676)

- 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)

### Misc

- Depreacted `UserDataBag::getSegment()` and `UserDataBag::setSegment()`. You may use a custom tag or context instead [(#1681)](https://github.com/getsentry/sentry-php/pull/1681)

## 4.3.1

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

0 comments on commit 1a110bf

Please sign in to comment.