Skip to content

Structured Logging not working #1017

Open
@PHLAK

Description

@PHLAK

How do you use Sentry?

Sentry SaaS (sentry.io)

SDK version

4.15.0

Laravel version

12.19.3

Steps to reproduce

Added the sentry_logs channel to config/logging.php.

'channels' => [

    // ...

    'sentry_logs' => [
        'driver' => 'sentry_logs',
        'level' => env('LOG_LEVEL', 'debug'),
    ],

]

Configured the log channel and stack and enabled logging in the .env.

LOG_CHANNEL=stack
LOG_STACK=daily,sentry_logs

SENTRY_ENABLE_LOGS=true

We also have our DSN configured.

SENTRY_LARAVEL_DSN=[REDACTED]
SENTRY_TRACES_SAMPLE_RATE=0.01

Expected result

Logs to be reported to Sentry and viewable by team members.

Actual result

No logs reported to sentry.

Also, when manually navigating to https://[REDACTED].sentry.io/explore/logs the following is shown (the spinner never stops spinning).

Image

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions