@@ -110,7 +110,7 @@ exports.createStripePayment = functions.firestore
110
110
await snap . ref . set ( payment ) ;
111
111
} catch ( error ) {
112
112
// We want to capture errors and render them in a user-friendly way, while
113
- // still logging an exception with StackDriver
113
+ // still logging an exception to Error Reporting.
114
114
functions . logger . log ( error ) ;
115
115
await snap . ref . set ( { error : userFacingMessage ( error ) } , { merge : true } ) ;
116
116
await reportError ( error , { user : context . params . userId } ) ;
@@ -163,17 +163,17 @@ exports.cleanupUser = functions.auth.user().onDelete(async (user) => {
163
163
} ) ;
164
164
165
165
/**
166
- * To keep on top of errors, we should raise a verbose error report with Stackdriver rather
166
+ * To keep on top of errors, we should raise a verbose error report with Error Reporting rather
167
167
* than simply relying on functions.logger.error. This will calculate users affected + send you email
168
168
* alerts, if you've opted into receiving them.
169
169
*/
170
170
171
171
// [START reporterror]
172
172
173
173
function reportError ( err , context = { } ) {
174
- // This is the name of the StackDriver log stream that will receive the log
174
+ // This is the name of the log stream that will receive the log
175
175
// entry. This name can be any valid log stream name, but must contain "err"
176
- // in order for the error to be picked up by StackDriver Error Reporting.
176
+ // in order for the error to be picked up by Error Reporting.
177
177
const logName = 'errors' ;
178
178
const log = logging . log ( logName ) ;
179
179
0 commit comments