manigandham / serilog-sinks-googlecloudlogging

Serilog sink that writes events to Google Cloud Logging
MIT License
41 stars 25 forks source link

Use Log Correlation #43

Closed arakis closed 3 years ago

arakis commented 3 years ago

Apply Log Correlation as described here: https://cloud.google.com/trace/docs/trace-log-integration

The detail is, TraceId and SpanId are only respected within the google trace viewer, when LogEntry.Trace and LogEntry.SpanId are set. If they are only in the normal properties, they are stored, but not assigned to the trace itself, so you have manually filter them.

image

manigandham commented 3 years ago

@arakis

Thanks for adding, the latest version is released: https://www.nuget.org/packages/Serilog.Sinks.GoogleCloudLogging/3.3.3