crassula/google-cloud-error-reporting-bundle
Symfony bundle integrating Google Cloud Error Reporting. Configure project ID, service name and credentials, enable per environment, then report exceptions via the ErrorReporter service with optional HTTP request/response and user context.
Pros:
kernel.exception/console.error listeners).ErrorReporter) for extensibility, allowing custom implementations (e.g., mocks for testing).Cons:
google-cloud-php-errorreporting is in alpha, risking breaking changes (see README note).autoconfigure changes).credentials in config) with Error Reporting API access.grpc and protobuf for performance, but may work without them (risk of degraded functionality).google-cloud-php-errorreporting could introduce unexpected failures or require frequent updates.autowiring) may break integration.autoconfigure, config system changes).HttpException 404) be ignored? The bundle supports this via ignored_exceptions config.kernel.exception, console.error) and DI container.config.yml for setup, reducing learning curve.grpc, protobuf) for optimal performance.roles/cloudprofiler.agent).ErrorReporter::report() calls) in critical paths.use_listeners: true) gradually, monitoring for false positives.crassula_google_cloud_error_reporting (e.g., map log levels to GCP severity).# Old Monolog config
monolog:
handlers:
main:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
# New GCP config
crassula_google_cloud_error_reporting:
enabled: true
project_id: "my-project"
service: "my-app"
ignored_exceptions: ["Symfony\Component\HttpKernel\Exception\NotFoundHttpException"]
google-cloud-php-errorreporting to a specific alpha version to reduce breakage risk.composer why-not to check for version conflicts.autowiring, config system).ErrorReporter in critical business logic (e.g., payment processing).use_listeners: true for global exception coverage.HttpException 404) via ignored_exceptions.client_options (e.g., retrySettings) based on latency metrics.google-cloud-php-errorreporting releases a stable version.crassula/google-cloud-error-reporting-bundle and its dependencies to avoid surprises.google/cloud-error-reporting-mock) to simulate API failures.var/log/dev.log for CrassulaGoogleCloudErrorReportingBundle errors (e.g., auth failures).How can I help you explore Laravel packages today?