Skip to content
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

Performance monitoring doesn't work in artisan commands #879

Open
ingria opened this issue Apr 9, 2024 · 0 comments
Open

Performance monitoring doesn't work in artisan commands #879

ingria opened this issue Apr 9, 2024 · 0 comments
Assignees

Comments

@ingria
Copy link

ingria commented Apr 9, 2024

How do you use Sentry?

Self-hosted / on-premises

SDK version

4.4.1

Steps to reproduce

  1. Create any artisan command with any database queries, for example:
// App\Console\Commands\TestCommand

protected $signature = 'app:test-command';

public function handle()
{
    \DB::table('test')->insert([
        'created_at'=>now(),
    ]);
}
  1. Execute the command:
php artisan app:test-command

Expected result

Transaction with performance data is sent to Sentry

Actual result

No data is sent to Sentry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants