Skip to content

Add Sentry logs #1000

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Jun 12, 2025
Merged

Add Sentry logs #1000

merged 19 commits into from
Jun 12, 2025

Conversation

cleptric
Copy link
Member

@cleptric cleptric commented Jun 7, 2025

Closes #999

@stayallive stayallive marked this pull request as ready for review June 12, 2025 07:24
Comment on lines -145 to -158
/** @define-env envSamplingAllTransactions */
public function testScheduledCommandCreatesTransaction(): void
{
$this->getScheduler()->command('inspire')->everyMinute();

$this->artisan('schedule:run');

$this->assertSentryTransactionCount(1);

$transaction = $this->getLastSentryEvent();

$this->assertEquals('inspire', $transaction->getTransaction());
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test is a little redundant and laravel/framework#55624 broke this test (as it should have before probably), will try to fix at a later point because I can't find a good workaround for now.

@cleptric cleptric enabled auto-merge (squash) June 12, 2025 17:51
@cleptric cleptric merged commit f33d9ff into master Jun 12, 2025
33 checks passed
@cleptric cleptric deleted the logs branch June 12, 2025 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sentry Structured Logging for Laravel
3 participants