Skip to content

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

4 participants