This module provides Error Reporting support for Node.js applications. [Error Reporting](https://cloud.google.com/error-reporting/) is a feature of Google Cloud Platform that allows in-depth monitoring and viewing of errors reported by applications running in almost any environment.
This is the entry point for initializing the error reporting middleware. This function will invoke configuration gathering and attempt to create a API client which will send errors to the Error Reporting Service.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Package @google-cloud/error-reporting (3.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [3.0.4 (latest)](/nodejs/docs/reference/error-reporting/latest/overview)\n- [3.0.3](/nodejs/docs/reference/error-reporting/3.0.3/overview)\n- [2.0.4](/nodejs/docs/reference/error-reporting/2.0.4/overview) \n\nClasses\n-------\n\n### [ErrorMessage](/nodejs/docs/reference/error-reporting/latest/error-reporting/errormessage)\n\n### [ErrorReporting](/nodejs/docs/reference/error-reporting/latest/error-reporting/errorreporting)\n\nThis module provides Error Reporting support for Node.js applications. \\[Error Reporting\\](\u003chttps://cloud.google.com/error-reporting/\u003e) is a feature of Google Cloud Platform that allows in-depth monitoring and viewing of errors reported by applications running in almost any environment.\n\nThis is the entry point for initializing the error reporting middleware. This function will invoke configuration gathering and attempt to create a API client which will send errors to the Error Reporting Service.\n\nmodule:error-reporting\n\n\\[What is Error Reporting\\]\u003chttps://cloud.google.com/error-reporting/\u003e\n\nType Aliases\n------------\n\n### RestifyRequestHandler\n\n export declare type RestifyRequestHandler = (req: any, res: any, next: Function) =\u003e any;"]]