GoogleCloudPlatform / GoogleCloudPlatform/functions-framework-dart

Consider outputting log information for Cloud Error Reporting

Open
#40 0 comments 2 reactions 0 assignees View on GitHub
kind/enhancement
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.