Cloud Run functions grants the
Error Reporting Writer role (roles/errorreporting.writer)
to your default service account automatically.
Your client libraries can be used without needing to explicitly provide credentials.
Cloud Run functions is configured to use Error Reporting automatically. Unhandled exceptions appear in Logging and be processed by Error Reporting without needing to use a client library.
Note: Error Reporting automatically creates an error event when a log entry contains a stack trace and the severity level of the log entry isn't set or is set to at leastERROR.