Skip to content

Releases: getsentry/sentry-laravel

4.20.0

02 Dec 10:40

Choose a tag to compare

The Sentry SDK team is happy to announce the immediate availability of Sentry Laravel SDK v4.20.0.

Features

  • Add support for Sentry metrics. (#1072)
// Counter metric \Sentry\trace_metrics()->count('test-counter', 10, ['my-attribute' => 'foo']); // Gauge metric \Sentry\trace_metrics()->gauge('test-gauge', 50.0, ['my-attribute' => 'foo'], \Sentry\Unit::millisecond()); // Distribution metric \Sentry\trace_metrics()->distribution('test-distribution', 20.0, ['my-attribute' => 'foo'], \Sentry\Unit::kilobyte());

Misc

4.19.0

11 Nov 09:04

Choose a tag to compare

The Sentry SDK team is happy to announce the immediate availability of Sentry Laravel SDK v4.19.0.

Features

  • Add Laravel Pennant feature flags (#1061)

    The SDK will now automatically capture feature flags resolved using Laravel Pennant and attach them to events and spans.

Bug Fixes

  • Do not try to detect the session key on the CLI (#1058)

4.18.0

20 Oct 13:01

Choose a tag to compare

The Sentry SDK team is happy to announce the immediate availability of Sentry Laravel SDK v4.18.0.

Bug Fixes

  • Ensure we flush logs when the application unexpectedly terminates (#1052)

Misc

  • Use SENTRY_LOG_LEVEL environment variable instead of SENTRY_LOGS_LEVEL to be more consistent (SENTRY_LOGS_LEVEL will keep working as an alias for backward compatibility). (#1051)
  • Bump the PHP SDK to version 4.16.0 (#1053)

4.17.0

15 Oct 10:07

Choose a tag to compare

The Sentry SDK team is happy to announce the immediate availability of Sentry Laravel SDK v4.17.0.

Features

  • Auto configure Sentry log channels. (#1042)

Configuring the channel is no longer required. To enable logs for Sentry, the following environment variables
need to be configured:

LOG_CHANNEL=stack LOG_STACK=single,sentry_logs SENTRY_ENABLE_LOGS=true

Sentry will use LOG_LEVEL to determine the minimum log level, but it's possible to overwrite it just for Sentry
using SENTRY_LOG_LEVEL.

LOG_LEVEL=info SENTRY_LOG_LEVEL=warning

Misc

  • Add sentry.origin attribute to LogsHandler. (#1041)

4.16.0

10 Sep 16:41

Choose a tag to compare

The Sentry SDK team is happy to announce the immediate availability of Sentry Laravel SDK v4.16.0.

Features

4.15.3

04 Sep 14:39

Choose a tag to compare

The Sentry SDK team is happy to announce the immediate availability of Sentry Laravel SDK v4.15.3.

Bug Fixes

  • Guard against empty cache event keys (#1031)

4.15.2

04 Sep 12:23

Choose a tag to compare

The Sentry SDK team is happy to announce the immediate availability of Sentry Laravel SDK v4.15.2.

Bug Fixes

  • Replace the session key in cache span names by a placeholder (#1009)

Misc

  • Bump the PHP SDK to version 4.15.2 (#1028)

4.15.1

24 Jun 12:53

Choose a tag to compare

The Sentry SDK team is happy to announce the immediate availability of Sentry Laravel SDK v4.15.1.

Misc

  • Bump the PHP SDK to version 4.14.1 (#1013)

4.15.0

12 Jun 20:58

Choose a tag to compare

The Sentry SDK team is happy to announce the immediate availability of Sentry Laravel SDK v4.15.0.

Features

  • Add support for Sentry Structured Logs (#1000)

    To enable this feature, add the sentry_logs log channel in your config/logging.php configuration:

    'channels' => [ ... 'sentry_logs' => [ 'driver' => 'sentry_logs', 'level' => env('LOG_LEVEL', 'info'), ], ... ],

    Add SENTRY_ENABLE_LOGS=true to your .env file.

    Use the Log facade to sent your logs to Sentry. To learn more, head over to the Laravel docs.

    use Illuminate\Support\Facades\Log; Log::channel('sentry_logs')->info('User {id} failed to login.', ['id' => $user->id]);

    To learn more, head over to our docs.

4.14.1

07 Jun 07:54

Choose a tag to compare

The Sentry SDK team is happy to announce the immediate availability of Sentry Laravel SDK v4.14.1.

Bug Fixes

  • Ensure there is a newline before writing env variables (#1002)

    Fixed an issue where the php artisan sentry:publish command might not properly add newlines when writing environment variables to the .env file.