Apply fixes from StyleCI
This commit is contained in:

committed by
RafficMohammed

parent
1eea7ff15e
commit
4e5c7123b0
@@ -8,7 +8,6 @@ use Illuminate\Support\ServiceProvider;
|
|||||||
|
|
||||||
class QueryListenProvider extends ServiceProvider
|
class QueryListenProvider extends ServiceProvider
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bootstrap services.
|
* Bootstrap services.
|
||||||
*
|
*
|
||||||
|
@@ -186,7 +186,7 @@ return [
|
|||||||
\Yajra\DataTables\DataTablesServiceProvider::class,
|
\Yajra\DataTables\DataTablesServiceProvider::class,
|
||||||
\Bugsnag\BugsnagLaravel\BugsnagServiceProvider::class,
|
\Bugsnag\BugsnagLaravel\BugsnagServiceProvider::class,
|
||||||
Maatwebsite\Excel\ExcelServiceProvider::class,
|
Maatwebsite\Excel\ExcelServiceProvider::class,
|
||||||
App\Providers\QueryListenProvider::class
|
App\Providers\QueryListenProvider::class,
|
||||||
|
|
||||||
],
|
],
|
||||||
/*
|
/*
|
||||||
|
@@ -2,416 +2,416 @@
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|------------------------------------------------------------------------------------------------------------------
|
|------------------------------------------------------------------------------------------------------------------
|
||||||
| Enable Clockwork
|
| Enable Clockwork
|
||||||
|------------------------------------------------------------------------------------------------------------------
|
|------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Clockwork is enabled by default only when your application is in debug mode. Here you can explicitly enable or
|
| Clockwork is enabled by default only when your application is in debug mode. Here you can explicitly enable or
|
||||||
| disable Clockwork. When disabled, no data is collected and the api and web ui are inactive.
|
| disable Clockwork. When disabled, no data is collected and the api and web ui are inactive.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'enable' => env('CLOCKWORK_ENABLE', null),
|
'enable' => env('CLOCKWORK_ENABLE', null),
|
||||||
'middlewares'=>['web','auth','roles'],
|
'middlewares'=> ['web', 'auth', 'roles'],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|------------------------------------------------------------------------------------------------------------------
|
|------------------------------------------------------------------------------------------------------------------
|
||||||
| Features
|
| Features
|
||||||
|------------------------------------------------------------------------------------------------------------------
|
|------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| You can enable or disable various Clockwork features here. Some features have additional settings (eg. slow query
|
| You can enable or disable various Clockwork features here. Some features have additional settings (eg. slow query
|
||||||
| threshold for database queries).
|
| threshold for database queries).
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'features' => [
|
'features' => [
|
||||||
|
|
||||||
// Cache usage stats and cache queries including results
|
// Cache usage stats and cache queries including results
|
||||||
'cache' => [
|
'cache' => [
|
||||||
'enabled' => env('CLOCKWORK_CACHE_ENABLED', true),
|
'enabled' => env('CLOCKWORK_CACHE_ENABLED', true),
|
||||||
|
|
||||||
// Collect cache queries
|
// Collect cache queries
|
||||||
'collect_queries' => env('CLOCKWORK_CACHE_QUERIES', true),
|
'collect_queries' => env('CLOCKWORK_CACHE_QUERIES', true),
|
||||||
|
|
||||||
// Collect values from cache queries (high performance impact with a very high number of queries)
|
// Collect values from cache queries (high performance impact with a very high number of queries)
|
||||||
'collect_values' => env('CLOCKWORK_CACHE_COLLECT_VALUES', false)
|
'collect_values' => env('CLOCKWORK_CACHE_COLLECT_VALUES', false),
|
||||||
],
|
],
|
||||||
|
|
||||||
// Database usage stats and queries
|
// Database usage stats and queries
|
||||||
'database' => [
|
'database' => [
|
||||||
'enabled' => env('CLOCKWORK_DATABASE_ENABLED', true),
|
'enabled' => env('CLOCKWORK_DATABASE_ENABLED', true),
|
||||||
|
|
||||||
// Collect database queries (high performance impact with a very high number of queries)
|
// Collect database queries (high performance impact with a very high number of queries)
|
||||||
'collect_queries' => env('CLOCKWORK_DATABASE_COLLECT_QUERIES', true),
|
'collect_queries' => env('CLOCKWORK_DATABASE_COLLECT_QUERIES', true),
|
||||||
|
|
||||||
// Collect details of models updates (high performance impact with a lot of model updates)
|
// Collect details of models updates (high performance impact with a lot of model updates)
|
||||||
'collect_models_actions' => env('CLOCKWORK_DATABASE_COLLECT_MODELS_ACTIONS', true),
|
'collect_models_actions' => env('CLOCKWORK_DATABASE_COLLECT_MODELS_ACTIONS', true),
|
||||||
|
|
||||||
// Collect details of retrieved models (very high performance impact with a lot of models retrieved)
|
// Collect details of retrieved models (very high performance impact with a lot of models retrieved)
|
||||||
'collect_models_retrieved' => env('CLOCKWORK_DATABASE_COLLECT_MODELS_RETRIEVED', false),
|
'collect_models_retrieved' => env('CLOCKWORK_DATABASE_COLLECT_MODELS_RETRIEVED', false),
|
||||||
|
|
||||||
// Query execution time threshold in milliseconds after which the query will be marked as slow
|
// Query execution time threshold in milliseconds after which the query will be marked as slow
|
||||||
'slow_threshold' => env('CLOCKWORK_DATABASE_SLOW_THRESHOLD'),
|
'slow_threshold' => env('CLOCKWORK_DATABASE_SLOW_THRESHOLD'),
|
||||||
|
|
||||||
// Collect only slow database queries
|
// Collect only slow database queries
|
||||||
'slow_only' => env('CLOCKWORK_DATABASE_SLOW_ONLY', false),
|
'slow_only' => env('CLOCKWORK_DATABASE_SLOW_ONLY', false),
|
||||||
|
|
||||||
// Detect and report duplicate queries
|
// Detect and report duplicate queries
|
||||||
'detect_duplicate_queries' => env('CLOCKWORK_DATABASE_DETECT_DUPLICATE_QUERIES', false)
|
'detect_duplicate_queries' => env('CLOCKWORK_DATABASE_DETECT_DUPLICATE_QUERIES', false),
|
||||||
],
|
],
|
||||||
|
|
||||||
// Dispatched events
|
// Dispatched events
|
||||||
'events' => [
|
'events' => [
|
||||||
'enabled' => env('CLOCKWORK_EVENTS_ENABLED', true),
|
'enabled' => env('CLOCKWORK_EVENTS_ENABLED', true),
|
||||||
|
|
||||||
// Ignored events (framework events are ignored by default)
|
// Ignored events (framework events are ignored by default)
|
||||||
'ignored_events' => [
|
'ignored_events' => [
|
||||||
// App\Events\UserRegistered::class,
|
// App\Events\UserRegistered::class,
|
||||||
// 'user.registered'
|
// 'user.registered'
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
// Laravel log (you can still log directly to Clockwork with laravel log disabled)
|
// Laravel log (you can still log directly to Clockwork with laravel log disabled)
|
||||||
'log' => [
|
'log' => [
|
||||||
'enabled' => env('CLOCKWORK_LOG_ENABLED', true)
|
'enabled' => env('CLOCKWORK_LOG_ENABLED', true),
|
||||||
],
|
],
|
||||||
|
|
||||||
// Sent notifications
|
// Sent notifications
|
||||||
'notifications' => [
|
'notifications' => [
|
||||||
'enabled' => env('CLOCKWORK_NOTIFICATIONS_ENABLED', true),
|
'enabled' => env('CLOCKWORK_NOTIFICATIONS_ENABLED', true),
|
||||||
],
|
],
|
||||||
|
|
||||||
// Performance metrics
|
// Performance metrics
|
||||||
'performance' => [
|
'performance' => [
|
||||||
// Allow collecting of client metrics. Requires separate clockwork-browser npm package.
|
// Allow collecting of client metrics. Requires separate clockwork-browser npm package.
|
||||||
'client_metrics' => env('CLOCKWORK_PERFORMANCE_CLIENT_METRICS', true)
|
'client_metrics' => env('CLOCKWORK_PERFORMANCE_CLIENT_METRICS', true),
|
||||||
],
|
],
|
||||||
|
|
||||||
// Dispatched queue jobs
|
// Dispatched queue jobs
|
||||||
'queue' => [
|
'queue' => [
|
||||||
'enabled' => env('CLOCKWORK_QUEUE_ENABLED', true)
|
'enabled' => env('CLOCKWORK_QUEUE_ENABLED', true),
|
||||||
],
|
],
|
||||||
|
|
||||||
// Redis commands
|
// Redis commands
|
||||||
'redis' => [
|
'redis' => [
|
||||||
'enabled' => env('CLOCKWORK_REDIS_ENABLED', true)
|
'enabled' => env('CLOCKWORK_REDIS_ENABLED', true),
|
||||||
],
|
],
|
||||||
|
|
||||||
// Routes list
|
// Routes list
|
||||||
'routes' => [
|
'routes' => [
|
||||||
'enabled' => env('CLOCKWORK_ROUTES_ENABLED', false),
|
'enabled' => env('CLOCKWORK_ROUTES_ENABLED', false),
|
||||||
|
|
||||||
// Collect only routes from particular namespaces (only application routes by default)
|
// Collect only routes from particular namespaces (only application routes by default)
|
||||||
'only_namespaces' => [ 'App' ]
|
'only_namespaces' => ['App'],
|
||||||
],
|
],
|
||||||
|
|
||||||
// Rendered views
|
// Rendered views
|
||||||
'views' => [
|
'views' => [
|
||||||
'enabled' => env('CLOCKWORK_VIEWS_ENABLED', true),
|
'enabled' => env('CLOCKWORK_VIEWS_ENABLED', true),
|
||||||
|
|
||||||
// Collect views including view data (high performance impact with a high number of views)
|
// Collect views including view data (high performance impact with a high number of views)
|
||||||
'collect_data' => env('CLOCKWORK_VIEWS_COLLECT_DATA', false),
|
'collect_data' => env('CLOCKWORK_VIEWS_COLLECT_DATA', false),
|
||||||
|
|
||||||
// Use Twig profiler instead of Laravel events for apps using laravel-twigbridge (more precise, but does
|
// Use Twig profiler instead of Laravel events for apps using laravel-twigbridge (more precise, but does
|
||||||
// not support collecting view data)
|
// not support collecting view data)
|
||||||
'use_twig_profiler' => env('CLOCKWORK_VIEWS_USE_TWIG_PROFILER', false)
|
'use_twig_profiler' => env('CLOCKWORK_VIEWS_USE_TWIG_PROFILER', false),
|
||||||
]
|
],
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|------------------------------------------------------------------------------------------------------------------
|
|------------------------------------------------------------------------------------------------------------------
|
||||||
| Enable web UI
|
| Enable web UI
|
||||||
|------------------------------------------------------------------------------------------------------------------
|
|------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Clockwork comes with a web UI accessible via http://your.app/clockwork. Here you can enable or disable this
|
| Clockwork comes with a web UI accessible via http://your.app/clockwork. Here you can enable or disable this
|
||||||
| feature. You can also set a custom path for the web UI.
|
| feature. You can also set a custom path for the web UI.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'web' => env('CLOCKWORK_WEB', true),
|
'web' => env('CLOCKWORK_WEB', true),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|------------------------------------------------------------------------------------------------------------------
|
|------------------------------------------------------------------------------------------------------------------
|
||||||
| Enable toolbar
|
| Enable toolbar
|
||||||
|------------------------------------------------------------------------------------------------------------------
|
|------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Clockwork can show a toolbar with basic metrics on all responses. Here you can enable or disable this feature.
|
| Clockwork can show a toolbar with basic metrics on all responses. Here you can enable or disable this feature.
|
||||||
| Requires a separate clockwork-browser npm library.
|
| Requires a separate clockwork-browser npm library.
|
||||||
| For installation instructions see https://underground.works/clockwork/#docs-viewing-data
|
| For installation instructions see https://underground.works/clockwork/#docs-viewing-data
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'toolbar' => env('CLOCKWORK_TOOLBAR', true),
|
'toolbar' => env('CLOCKWORK_TOOLBAR', true),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|------------------------------------------------------------------------------------------------------------------
|
|------------------------------------------------------------------------------------------------------------------
|
||||||
| HTTP requests collection
|
| HTTP requests collection
|
||||||
|------------------------------------------------------------------------------------------------------------------
|
|------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Clockwork collects data about HTTP requests to your app. Here you can choose which requests should be collected.
|
| Clockwork collects data about HTTP requests to your app. Here you can choose which requests should be collected.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'requests' => [
|
'requests' => [
|
||||||
// With on-demand mode enabled, Clockwork will only profile requests when the browser extension is open or you
|
// With on-demand mode enabled, Clockwork will only profile requests when the browser extension is open or you
|
||||||
// manually pass a "clockwork-profile" cookie or get/post data key.
|
// manually pass a "clockwork-profile" cookie or get/post data key.
|
||||||
// Optionally you can specify a "secret" that has to be passed as the value to enable profiling.
|
// Optionally you can specify a "secret" that has to be passed as the value to enable profiling.
|
||||||
'on_demand' => env('CLOCKWORK_REQUESTS_ON_DEMAND', false),
|
'on_demand' => env('CLOCKWORK_REQUESTS_ON_DEMAND', false),
|
||||||
|
|
||||||
// Collect only errors (requests with HTTP 4xx and 5xx responses)
|
// Collect only errors (requests with HTTP 4xx and 5xx responses)
|
||||||
'errors_only' => env('CLOCKWORK_REQUESTS_ERRORS_ONLY', false),
|
'errors_only' => env('CLOCKWORK_REQUESTS_ERRORS_ONLY', false),
|
||||||
|
|
||||||
// Response time threshold in milliseconds after which the request will be marked as slow
|
// Response time threshold in milliseconds after which the request will be marked as slow
|
||||||
'slow_threshold' => env('CLOCKWORK_REQUESTS_SLOW_THRESHOLD'),
|
'slow_threshold' => env('CLOCKWORK_REQUESTS_SLOW_THRESHOLD'),
|
||||||
|
|
||||||
// Collect only slow requests
|
// Collect only slow requests
|
||||||
'slow_only' => env('CLOCKWORK_REQUESTS_SLOW_ONLY', false),
|
'slow_only' => env('CLOCKWORK_REQUESTS_SLOW_ONLY', false),
|
||||||
|
|
||||||
// Sample the collected requests (e.g. set to 100 to collect only 1 in 100 requests)
|
// Sample the collected requests (e.g. set to 100 to collect only 1 in 100 requests)
|
||||||
'sample' => env('CLOCKWORK_REQUESTS_SAMPLE', false),
|
'sample' => env('CLOCKWORK_REQUESTS_SAMPLE', false),
|
||||||
|
|
||||||
// List of URIs that should not be collected
|
// List of URIs that should not be collected
|
||||||
'except' => [
|
'except' => [
|
||||||
'/horizon/.*', // Laravel Horizon requests
|
'/horizon/.*', // Laravel Horizon requests
|
||||||
'/telescope/.*', // Laravel Telescope requests
|
'/telescope/.*', // Laravel Telescope requests
|
||||||
'/_debugbar/.*', // Laravel DebugBar requests
|
'/_debugbar/.*', // Laravel DebugBar requests
|
||||||
],
|
],
|
||||||
|
|
||||||
// List of URIs that should be collected, any other URI will not be collected if not empty
|
// List of URIs that should be collected, any other URI will not be collected if not empty
|
||||||
'only' => [
|
'only' => [
|
||||||
// '/api/.*'
|
// '/api/.*'
|
||||||
],
|
],
|
||||||
|
|
||||||
// Don't collect OPTIONS requests, mostly used in the CSRF pre-flight requests and are rarely of interest
|
// Don't collect OPTIONS requests, mostly used in the CSRF pre-flight requests and are rarely of interest
|
||||||
'except_preflight' => env('CLOCKWORK_REQUESTS_EXCEPT_PREFLIGHT', true)
|
'except_preflight' => env('CLOCKWORK_REQUESTS_EXCEPT_PREFLIGHT', true),
|
||||||
],
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|------------------------------------------------------------------------------------------------------------------
|
|------------------------------------------------------------------------------------------------------------------
|
||||||
| Artisan commands collection
|
| Artisan commands collection
|
||||||
|------------------------------------------------------------------------------------------------------------------
|
|------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Clockwork can collect data about executed artisan commands. Here you can enable and configure which commands
|
| Clockwork can collect data about executed artisan commands. Here you can enable and configure which commands
|
||||||
| should be collected.
|
| should be collected.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'artisan' => [
|
'artisan' => [
|
||||||
// Enable or disable collection of executed Artisan commands
|
// Enable or disable collection of executed Artisan commands
|
||||||
'collect' => env('CLOCKWORK_ARTISAN_COLLECT', false),
|
'collect' => env('CLOCKWORK_ARTISAN_COLLECT', false),
|
||||||
|
|
||||||
// List of commands that should not be collected (built-in commands are not collected by default)
|
// List of commands that should not be collected (built-in commands are not collected by default)
|
||||||
'except' => [
|
'except' => [
|
||||||
// 'inspire'
|
// 'inspire'
|
||||||
],
|
],
|
||||||
|
|
||||||
// List of commands that should be collected, any other command will not be collected if not empty
|
// List of commands that should be collected, any other command will not be collected if not empty
|
||||||
'only' => [
|
'only' => [
|
||||||
// 'inspire'
|
// 'inspire'
|
||||||
],
|
],
|
||||||
|
|
||||||
// Enable or disable collection of command output
|
// Enable or disable collection of command output
|
||||||
'collect_output' => env('CLOCKWORK_ARTISAN_COLLECT_OUTPUT', false),
|
'collect_output' => env('CLOCKWORK_ARTISAN_COLLECT_OUTPUT', false),
|
||||||
|
|
||||||
// Enable or disable collection of built-in Laravel commands
|
// Enable or disable collection of built-in Laravel commands
|
||||||
'except_laravel_commands' => env('CLOCKWORK_ARTISAN_EXCEPT_LARAVEL_COMMANDS', true)
|
'except_laravel_commands' => env('CLOCKWORK_ARTISAN_EXCEPT_LARAVEL_COMMANDS', true),
|
||||||
],
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|------------------------------------------------------------------------------------------------------------------
|
|------------------------------------------------------------------------------------------------------------------
|
||||||
| Queue jobs collection
|
| Queue jobs collection
|
||||||
|------------------------------------------------------------------------------------------------------------------
|
|------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Clockwork can collect data about executed queue jobs. Here you can enable and configure which queue jobs should
|
| Clockwork can collect data about executed queue jobs. Here you can enable and configure which queue jobs should
|
||||||
| be collected.
|
| be collected.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'queue' => [
|
'queue' => [
|
||||||
// Enable or disable collection of executed queue jobs
|
// Enable or disable collection of executed queue jobs
|
||||||
'collect' => env('CLOCKWORK_QUEUE_COLLECT', false),
|
'collect' => env('CLOCKWORK_QUEUE_COLLECT', false),
|
||||||
|
|
||||||
// List of queue jobs that should not be collected
|
// List of queue jobs that should not be collected
|
||||||
'except' => [
|
'except' => [
|
||||||
// App\Jobs\ExpensiveJob::class
|
// App\Jobs\ExpensiveJob::class
|
||||||
],
|
],
|
||||||
|
|
||||||
// List of queue jobs that should be collected, any other queue job will not be collected if not empty
|
// List of queue jobs that should be collected, any other queue job will not be collected if not empty
|
||||||
'only' => [
|
'only' => [
|
||||||
// App\Jobs\BuggyJob::class
|
// App\Jobs\BuggyJob::class
|
||||||
]
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|------------------------------------------------------------------------------------------------------------------
|
|------------------------------------------------------------------------------------------------------------------
|
||||||
| Tests collection
|
| Tests collection
|
||||||
|------------------------------------------------------------------------------------------------------------------
|
|------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Clockwork can collect data about executed tests. Here you can enable and configure which tests should be
|
| Clockwork can collect data about executed tests. Here you can enable and configure which tests should be
|
||||||
| collected.
|
| collected.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'tests' => [
|
'tests' => [
|
||||||
// Enable or disable collection of ran tests
|
// Enable or disable collection of ran tests
|
||||||
'collect' => env('CLOCKWORK_TESTS_COLLECT', false),
|
'collect' => env('CLOCKWORK_TESTS_COLLECT', false),
|
||||||
|
|
||||||
// List of tests that should not be collected
|
// List of tests that should not be collected
|
||||||
'except' => [
|
'except' => [
|
||||||
// Tests\Unit\ExampleTest::class
|
// Tests\Unit\ExampleTest::class
|
||||||
]
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|------------------------------------------------------------------------------------------------------------------
|
|------------------------------------------------------------------------------------------------------------------
|
||||||
| Enable data collection when Clockwork is disabled
|
| Enable data collection when Clockwork is disabled
|
||||||
|------------------------------------------------------------------------------------------------------------------
|
|------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| You can enable this setting to collect data even when Clockwork is disabled, e.g. for future analysis.
|
| You can enable this setting to collect data even when Clockwork is disabled, e.g. for future analysis.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'collect_data_always' => env('CLOCKWORK_COLLECT_DATA_ALWAYS', false),
|
'collect_data_always' => env('CLOCKWORK_COLLECT_DATA_ALWAYS', false),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|------------------------------------------------------------------------------------------------------------------
|
|------------------------------------------------------------------------------------------------------------------
|
||||||
| Metadata storage
|
| Metadata storage
|
||||||
|------------------------------------------------------------------------------------------------------------------
|
|------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Configure how is the metadata collected by Clockwork stored. Two options are available:
|
| Configure how is the metadata collected by Clockwork stored. Two options are available:
|
||||||
| - files - A simple fast storage implementation storing data in one-per-request files.
|
| - files - A simple fast storage implementation storing data in one-per-request files.
|
||||||
| - sql - Stores requests in a sql database. Supports MySQL, PostgreSQL and SQLite. Requires PDO.
|
| - sql - Stores requests in a sql database. Supports MySQL, PostgreSQL and SQLite. Requires PDO.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'storage' => env('CLOCKWORK_STORAGE', 'files'),
|
'storage' => env('CLOCKWORK_STORAGE', 'files'),
|
||||||
|
|
||||||
// Path where the Clockwork metadata is stored
|
// Path where the Clockwork metadata is stored
|
||||||
'storage_files_path' => env('CLOCKWORK_STORAGE_FILES_PATH', storage_path('clockwork')),
|
'storage_files_path' => env('CLOCKWORK_STORAGE_FILES_PATH', storage_path('clockwork')),
|
||||||
|
|
||||||
// Compress the metadata files using gzip, trading a little bit of performance for lower disk usage
|
// Compress the metadata files using gzip, trading a little bit of performance for lower disk usage
|
||||||
'storage_files_compress' => env('CLOCKWORK_STORAGE_FILES_COMPRESS', false),
|
'storage_files_compress' => env('CLOCKWORK_STORAGE_FILES_COMPRESS', false),
|
||||||
|
|
||||||
// SQL database to use, can be a name of database configured in database.php or a path to a SQLite file
|
// SQL database to use, can be a name of database configured in database.php or a path to a SQLite file
|
||||||
'storage_sql_database' => env('CLOCKWORK_STORAGE_SQL_DATABASE', storage_path('clockwork.sqlite')),
|
'storage_sql_database' => env('CLOCKWORK_STORAGE_SQL_DATABASE', storage_path('clockwork.sqlite')),
|
||||||
|
|
||||||
// SQL table name to use, the table is automatically created and updated when needed
|
// SQL table name to use, the table is automatically created and updated when needed
|
||||||
'storage_sql_table' => env('CLOCKWORK_STORAGE_SQL_TABLE', 'clockwork'),
|
'storage_sql_table' => env('CLOCKWORK_STORAGE_SQL_TABLE', 'clockwork'),
|
||||||
|
|
||||||
// Maximum lifetime of collected metadata in minutes, older requests will automatically be deleted, false to disable
|
// Maximum lifetime of collected metadata in minutes, older requests will automatically be deleted, false to disable
|
||||||
'storage_expiration' => env('CLOCKWORK_STORAGE_EXPIRATION', 60 * 24 * 7),
|
'storage_expiration' => env('CLOCKWORK_STORAGE_EXPIRATION', 60 * 24 * 7),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|------------------------------------------------------------------------------------------------------------------
|
|------------------------------------------------------------------------------------------------------------------
|
||||||
| Authentication
|
| Authentication
|
||||||
|------------------------------------------------------------------------------------------------------------------
|
|------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Clockwork can be configured to require authentication before allowing access to the collected data. This might be
|
| Clockwork can be configured to require authentication before allowing access to the collected data. This might be
|
||||||
| useful when the application is publicly accessible. Setting to true will enable a simple authentication with a
|
| useful when the application is publicly accessible. Setting to true will enable a simple authentication with a
|
||||||
| pre-configured password. You can also pass a class name of a custom implementation.
|
| pre-configured password. You can also pass a class name of a custom implementation.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'authentication' => env('CLOCKWORK_AUTHENTICATION', false),
|
'authentication' => env('CLOCKWORK_AUTHENTICATION', false),
|
||||||
|
|
||||||
// Password for the simple authentication
|
// Password for the simple authentication
|
||||||
'authentication_password' => env('CLOCKWORK_AUTHENTICATION_PASSWORD', 'VerySecretPassword'),
|
'authentication_password' => env('CLOCKWORK_AUTHENTICATION_PASSWORD', 'VerySecretPassword'),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|------------------------------------------------------------------------------------------------------------------
|
|------------------------------------------------------------------------------------------------------------------
|
||||||
| Stack traces collection
|
| Stack traces collection
|
||||||
|------------------------------------------------------------------------------------------------------------------
|
|------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Clockwork can collect stack traces for log messages and certain data like database queries. Here you can set
|
| Clockwork can collect stack traces for log messages and certain data like database queries. Here you can set
|
||||||
| whether to collect stack traces, limit the number of collected frames and set further configuration. Collecting
|
| whether to collect stack traces, limit the number of collected frames and set further configuration. Collecting
|
||||||
| long stack traces considerably increases metadata size.
|
| long stack traces considerably increases metadata size.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'stack_traces' => [
|
'stack_traces' => [
|
||||||
// Enable or disable collecting of stack traces
|
// Enable or disable collecting of stack traces
|
||||||
'enabled' => env('CLOCKWORK_STACK_TRACES_ENABLED', true),
|
'enabled' => env('CLOCKWORK_STACK_TRACES_ENABLED', true),
|
||||||
|
|
||||||
// Limit the number of frames to be collected
|
// Limit the number of frames to be collected
|
||||||
'limit' => env('CLOCKWORK_STACK_TRACES_LIMIT', 10),
|
'limit' => env('CLOCKWORK_STACK_TRACES_LIMIT', 10),
|
||||||
|
|
||||||
// List of vendor names to skip when determining caller, common vendors are automatically added
|
// List of vendor names to skip when determining caller, common vendors are automatically added
|
||||||
'skip_vendors' => [
|
'skip_vendors' => [
|
||||||
// 'phpunit'
|
// 'phpunit'
|
||||||
],
|
],
|
||||||
|
|
||||||
// List of namespaces to skip when determining caller
|
// List of namespaces to skip when determining caller
|
||||||
'skip_namespaces' => [
|
'skip_namespaces' => [
|
||||||
// 'Laravel'
|
// 'Laravel'
|
||||||
],
|
],
|
||||||
|
|
||||||
// List of class names to skip when determining caller
|
// List of class names to skip when determining caller
|
||||||
'skip_classes' => [
|
'skip_classes' => [
|
||||||
// App\CustomLog::class
|
// App\CustomLog::class
|
||||||
]
|
],
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|------------------------------------------------------------------------------------------------------------------
|
|------------------------------------------------------------------------------------------------------------------
|
||||||
| Serialization
|
| Serialization
|
||||||
|------------------------------------------------------------------------------------------------------------------
|
|------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Clockwork serializes the collected data to json for storage and transfer. Here you can configure certain aspects
|
| Clockwork serializes the collected data to json for storage and transfer. Here you can configure certain aspects
|
||||||
| of serialization. Serialization has a large effect on the cpu time and memory usage.
|
| of serialization. Serialization has a large effect on the cpu time and memory usage.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Maximum depth of serialized multi-level arrays and objects
|
// Maximum depth of serialized multi-level arrays and objects
|
||||||
'serialization_depth' => env('CLOCKWORK_SERIALIZATION_DEPTH', 10),
|
'serialization_depth' => env('CLOCKWORK_SERIALIZATION_DEPTH', 10),
|
||||||
|
|
||||||
// A list of classes that will never be serialized (e.g. a common service container class)
|
// A list of classes that will never be serialized (e.g. a common service container class)
|
||||||
'serialization_blackbox' => [
|
'serialization_blackbox' => [
|
||||||
\Illuminate\Container\Container::class,
|
\Illuminate\Container\Container::class,
|
||||||
\Illuminate\Foundation\Application::class,
|
\Illuminate\Foundation\Application::class,
|
||||||
\Laravel\Lumen\Application::class
|
\Laravel\Lumen\Application::class,
|
||||||
],
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|------------------------------------------------------------------------------------------------------------------
|
|------------------------------------------------------------------------------------------------------------------
|
||||||
| Register helpers
|
| Register helpers
|
||||||
|------------------------------------------------------------------------------------------------------------------
|
|------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Clockwork comes with a "clock" global helper function. You can use this helper to quickly log something and to
|
| Clockwork comes with a "clock" global helper function. You can use this helper to quickly log something and to
|
||||||
| access the Clockwork instance.
|
| access the Clockwork instance.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'register_helpers' => env('CLOCKWORK_REGISTER_HELPERS', true),
|
'register_helpers' => env('CLOCKWORK_REGISTER_HELPERS', true),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|------------------------------------------------------------------------------------------------------------------
|
|------------------------------------------------------------------------------------------------------------------
|
||||||
| Send headers for AJAX request
|
| Send headers for AJAX request
|
||||||
|------------------------------------------------------------------------------------------------------------------
|
|------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| When trying to collect data, the AJAX method can sometimes fail if it is missing required headers. For example, an
|
| When trying to collect data, the AJAX method can sometimes fail if it is missing required headers. For example, an
|
||||||
| API might require a version number using Accept headers to route the HTTP request to the correct codebase.
|
| API might require a version number using Accept headers to route the HTTP request to the correct codebase.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'headers' => [
|
'headers' => [
|
||||||
// 'Accept' => 'application/vnd.com.whatever.v1+json',
|
// 'Accept' => 'application/vnd.com.whatever.v1+json',
|
||||||
],
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|------------------------------------------------------------------------------------------------------------------
|
|------------------------------------------------------------------------------------------------------------------
|
||||||
| Server timing
|
| Server timing
|
||||||
|------------------------------------------------------------------------------------------------------------------
|
|------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Clockwork supports the W3C Server Timing specification, which allows for collecting a simple performance metrics
|
| Clockwork supports the W3C Server Timing specification, which allows for collecting a simple performance metrics
|
||||||
| in a cross-browser way. E.g. in Chrome, your app, database and timeline event timings will be shown in the Dev
|
| in a cross-browser way. E.g. in Chrome, your app, database and timeline event timings will be shown in the Dev
|
||||||
| Tools network tab. This setting specifies the max number of timeline events that will be sent. Setting to false
|
| Tools network tab. This setting specifies the max number of timeline events that will be sent. Setting to false
|
||||||
| will disable the feature.
|
| will disable the feature.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'server_timing' => env('CLOCKWORK_SERVER_TIMING', 10)
|
'server_timing' => env('CLOCKWORK_SERVER_TIMING', 10),
|
||||||
|
|
||||||
];
|
];
|
||||||
|
@@ -65,5 +65,5 @@ return [
|
|||||||
'output' => [
|
'output' => [
|
||||||
\BeyondCode\QueryDetector\Outputs\Alert::class,
|
\BeyondCode\QueryDetector\Outputs\Alert::class,
|
||||||
\BeyondCode\QueryDetector\Outputs\Log::class,
|
\BeyondCode\QueryDetector\Outputs\Log::class,
|
||||||
]
|
],
|
||||||
];
|
];
|
||||||
|
@@ -1415,7 +1415,7 @@ return [
|
|||||||
*/
|
*/
|
||||||
'error-debug' => 'Error logs and debugging',
|
'error-debug' => 'Error logs and debugging',
|
||||||
'debug-options' => 'Debugging options',
|
'debug-options' => 'Debugging options',
|
||||||
'clock-work' =>'Clock work',
|
'clock-work' => 'Clock work',
|
||||||
'view-logs' => 'View error logs',
|
'view-logs' => 'View error logs',
|
||||||
'not-authorised-error-debug' => 'You are not authorised to access the URL',
|
'not-authorised-error-debug' => 'You are not authorised to access the URL',
|
||||||
'error-debug-settings' => 'Error and debugging settings',
|
'error-debug-settings' => 'Error and debugging settings',
|
||||||
|
Reference in New Issue
Block a user