serilog-sinks-opentelemetry
serilog-sinks-opentelemetry copied to clipboard
Serilog to OpenTelemetry Logs sink
This fixes #151 by exposing already existing configuration delegate. I thought about adding some tests, but there's no good seam to verify the behavior and the code is as simple...
#141 (see also #12) has brought support for standard OpenTelemetry configuration (`OTEL_EXPORTER_OTLP_TRACES_ENDPOINT` and so on), but it only consumes them from environment, while standard OpenTelemetry implementation in .NET allow consuming...
Usage: ```csharp Log.Logger = new LoggerConfiguration() .WriteTo.OpenTelemetry(options => { options.OnBeginSuppressInstrumentation = OpenTelemetry.SuppressInstrumentationScope.Begin; // ... ``` Fixes #41
First, I want to make clear that this is not a feature request for `Serilog.Sinks.OpenTelemetry`, as this is very obviously contrary to its original design decision. It's just that I...
## Is your feature request related to a problem? Please describe. When the specified OTLP endpoint is unreachable or otherwise incapable of receiving the request, it would be great to...
https://github.com/serilog/serilog-sinks-opentelemetry/blob/2c9ebbc9e12e5fd6ec4c47294deffb7d1bb8146f/src/Serilog.Sinks.OpenTelemetry/Sinks/OpenTelemetry/OpenTelemetrySink.cs#L50-L71 If I understand the code correctly, if `LogEvent` is recognized as a span (i.e. it has `SpanStartTimestamp` property and some other things), it won't end up in logging even...