firevel/request-logger
GCP Request Logger
Maintainers
Requires
- google/cloud-bigquery: ^1.25
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT 7974615a8c7f1b196f3c4506bcd61f6499589716
- Michael Slowik
This package is auto-updated.
Last update: 2026-06-25 08:02:59 UTC
README
The GCP Request Logger package is designed to store logs of every App Engine request within BigQuery. This includes detailed information such as peak memory and SQL queries. The primary purpose of this tool is to optimize memory usage within the App Engine.
Installation
Follow the steps below to successfully install the package:
- Install the package via composer:
composer require firevel/request-logger
- Propagate the
request-logger.phpconfiguration file by executing the following command:
php artisan vendor:publish --provider="Firevel\RequestLogger\Providers\RequestLoggerServiceProvider"
-
Establish a BigQuery dataset named
requestsand create a tableapi. Ensure to set up the table schema as in schema.json file. -
Assign the
BigQuery Data Editorrole to your App Engine service account ({project}@appspot.gserviceaccount.com) for appropriate access. -
Add
\Firevel\RequestLogger\Middleware\LogRequest::classmiddleware into yourApp\Http\Kernel.phpfile.
Configuration
Additional configurations can be set up in the config/request-logger.php file.
How it works.
Post installation and middleware inclusion, every request will be logged and stored in the api table within your requests dataset in the BigQuery. This logging will help you gain insights and further enhance the performance of your App Engine.
