GoogleCloudPlatform / GoogleCloudPlatform/functions-framework-dart
Consider outputting log information for Cloud Error Reporting
- Dominant language
- Dart
- Stars
- 548
- Forks
- 49
- Avg merge
- 53m
- Merged PRs (30d)
- 1
Description
Might be nice
```dart
// https://cloud.google.com/error-reporting/docs/formatting-error-messages#json_representation
'@type':
'type.googleapis.com/google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent',
'serviceContext': {
'service': Platform.environment['K_SERVICE'],
'version': Platform.environment['K_REVISION'],
},
if (stackFrame != null)
'context': {
'reportLocation': {
'filePath': stackFrame.library,
if (stackFrame.line != null) 'lineNumber': stackFrame.line,
'functionName': stackFrame.member,
}
},
```
Contributor guide
Assessment
This issue has not been assessed yet.