Skip to content

Commit 1599595

Browse files
authored
Prepare 4.16.0 (#1920)
1 parent 115d1fc commit 1599595

1 file changed

Lines changed: 23 additions & 5 deletions

File tree

CHANGELOG.md

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

3+
## 4.16.0
4+
5+
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.16.0.
6+
7+
### Features
8+
9+
- Remove `max_breadcrumbs` limit. [(#1890)](https://github.com/getsentry/sentry-php/pull/1890)
10+
- Implement `__destruct` in `LogsHandler` to make sure logs are always flushed. [(#1916)](https://github.com/getsentry/sentry-php/pull/1916)
11+
12+
### Bug Fixes
13+
14+
- Use PSR log level when logging messages using the PSR-3 logger within the SDK. [(#1907)](https://github.com/getsentry/sentry-php/pull/1907)
15+
- Remove `@internal` annotation from `Sentry\Transport\Result`. [(#1904)](https://github.com/getsentry/sentry-php/pull/1904)
16+
17+
### Misc
18+
19+
- Add `sentry.origin` attribute to `LogsHandler`. [(#1917)](https://github.com/getsentry/sentry-php/pull/1917)
20+
321
## 4.15.2
422

523
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.15.2.
@@ -30,26 +48,26 @@ The Sentry SDK team is happy to announce the immediate availability of Sentry PH
3048
use Monolog\Logger;
3149
use Sentry\Monolog\LogsHandler;
3250
use Sentry\Logs\LogLevel;
33-
51+
3452
// Initialize Sentry SDK first (make sure 'enable_logs' is set to true)
3553
\Sentry\init([
3654
'dsn' => '__YOUR_DSN__',
3755
'enable_logs' => true,
3856
]);
39-
57+
4058
// Create a Monolog logger
4159
$logger = new Logger('my-app');
42-
60+
4361
// Add the Sentry logs handler
4462
// Optional: specify minimum log level (defaults to LogLevel::debug())
4563
$handler = new LogsHandler(LogLevel::info());
4664
$logger->pushHandler($handler);
47-
65+
4866
// Now your logs will be sent to Sentry
4967
$logger->info('User logged in', ['user_id' => 123]);
5068
$logger->error('Payment failed', ['order_id' => 456]);
5169
```
52-
70+
5371
Note: The handler will not collect logs for exceptions (they should be handled separately via `captureException`).
5472

5573
### Bug Fixes

0 commit comments

Comments
 (0)