Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 976 Bytes

3_error_reporting.md

File metadata and controls

44 lines (30 loc) · 976 Bytes

Integration with Error reporting

By default, google/cloud-error-reporting package is installed but it's not enabled by default.

To enable it, you must set GCLOUD_ERROR_REPORTING environment variable to 1.

Error reporting is configured before Symfony initialization, so it's not an option to set it in your .env file.

You must configure it for your system:

$ export GCLOUD_ERROR_REPORTING=1

If you are using Docker:

# Dockerfile
ENV GCLOUD_ERROR_REPORTING 1

or docker-compose:

# docker-compose.yaml
services:
    fpm:
        environment:
            GCLOUD_ERROR_REPORTING: 1

Also you must add it to your deployment configuration. For example, if you are using Google App Engine, you must add it to your config file:

# app.yaml
env_variables:
    GCLOUD_ERROR_REPORTING: 1

Google Cloud permissions

Important: you require an active Service account with Error Reporting Writer permission.