serilog-sinks-opentelemetry
serilog-sinks-opentelemetry copied to clipboard
Serilog to OpenTelemetry Logs sink
Hello team, I am trying to find a way to format otlp logs when using the opentelemetry sink : ``` Log.Logger = new LoggerConfiguration() .WriteTo.OpenTelemetry(options => { options.Endpoint = "http://127.0.0.1:4317";...
[SerilogTracing](https://github.com/serilog-tracing/serilog-tracing) is a front-end for Serilog that hooks into `System.Diagnostics.Activity` and records completed activities (spans) as `LogEvent`s: ```csharp using var activity = Log.Logger.StartActivity("Request weather for postcode {Postcode}", postcode); // ......
Dear community. I'm initialization the `Serilog.Sinks.OpenTelemetry` only via the configuration file and getting an error because the HTTP connection cannot be estabshiled. The reason why is quite simple because my...
See the [OpenTelemetry environmental variable definitions](https://opentelemetry.io/docs/reference/specification/protocol/exporter/).
When using `new LoggerConfiguration().ReadFrom.Configuration(config)` I would like to be able to assign values to ResourceAttributes: I'm thinking something like "WriteTo": [ { "Name": "OpenTelemetry", "Args" : { "endpoint" : "http://localhost:4317",...
# Summary Opentelemetry sink incorrectly ignores request headers when the Logger is configured declaratively using JSON ConfigurationBuilder. In contrast, request headers are sent correctly only when the Logger is configured...
Given a configuration similar to the following, would it possible to flow enriched properties to OTEL Resource attributes. For instances, I'd want to be able to set the `host.name` attribute...
The dotnet OTEL Log exporter does this to hide its requests from tracing. [See it here](https://github.com/open-telemetry/opentelemetry-dotnet/blob/a46039a39be484ff979ca31d7ed61aac5309381e/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpLogExporter.cs#L75)