getsentry / getsentry/sentry-laravel

Performance monitoring doesn't work in artisan commands

Open
#879 0 comments 1 reaction 1 assignee Claimed by @stayallive View on GitHub
Feature Laravel Spans
Dominant language
PHP
Stars
1.4k
Forks
210
Avg merge
15h 57m
Merged PRs (30d)
3

Description

### 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:

```php
// App\Console\Commands\TestCommand

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

public function handle()
{
\DB::table('test')->insert([
'created_at'=>now(),
]);
}
```

2. 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.