Skip to content

Commit a7b3152

Browse files
committed
document gcp error reporting requires exception
1 parent fbe57e7 commit a7b3152

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ This library uses the [Google Cloud .NET](https://cloud.google.com/dotnet/docs)
6565

6666
- Serilog is designed for **[structured logging](https://github.com/serilog/serilog/wiki/Structured-Data)** which is fully supported by Google Cloud. Logs are sent as a JSON object (`JsonPayload` in the protobuf API) with labels, properties, metadata and any other data like stack traces automatically attached.
6767
- **Numeric values in labels and properties will be converted to `double` during serialization** because that is the only numeric type supported by JSON. Large integers and floating-point values will lose precision. If you want the exact value preserved then log it as a string instead.
68+
- GCP Error Reporting is separate from Cloud Logging and **will automatically capture error messages only if they have an `Exception` attached**. It is _not_ based on log severity level.
6869
- View logs in the GCP Logs Explorer: https://console.cloud.google.com/logs/viewer
6970

7071
## Sink Options

0 commit comments

Comments
 (0)