Serilog.Enrichers.Span
2.1.0
See the version list below for details.
dotnet add package Serilog.Enrichers.Span --version 2.1.0
NuGet\Install-Package Serilog.Enrichers.Span -Version 2.1.0
<PackageReference Include="Serilog.Enrichers.Span" Version="2.1.0" />
paket add Serilog.Enrichers.Span --version 2.1.0
#r "nuget: Serilog.Enrichers.Span, 2.1.0"
// Install Serilog.Enrichers.Span as a Cake Addin #addin nuget:?package=Serilog.Enrichers.Span&version=2.1.0 // Install Serilog.Enrichers.Span as a Cake Tool #tool nuget:?package=Serilog.Enrichers.Span&version=2.1.0
Enrich Serilog log events with properties from open telemetry spans using .NET's Activity API.
What Does It Do?
Enriches logs with a spans unique identifier, parent unique identifier and ASP.NET's trace unique identifier. Serilog.Enrichers.Span
is an add-on to Serilog to log exception details and custom properties that are not output in Exception.ToString()
.
Getting Started
Add the Serilog.Enrichers.Span NuGet package.
dotnet add package Serilog.Enrichers.Span
When setting up your logger, add the WithSpan()
line like so:
using Serilog;
using Serilog.Enrichers.Span;
ILogger logger = new LoggerConfiguration()
.Enrich.WithSpan()
.WriteTo.RollingFile(
new JsonFormatter(renderMessage: true),
@"C:\logs\log-{Date}.txt")
.CreateLogger();
Continuous Integration
Name | Operating System | Status | History |
---|---|---|---|
Azure Pipelines | Ubuntu | ||
Azure Pipelines | Mac | ||
Azure Pipelines | Windows | ||
Azure Pipelines | Overall | ||
GitHub Actions | Ubuntu, Mac & Windows | ||
AppVeyor | Ubuntu, Mac & Windows |
Contributions and Thanks
Please view the contributing guide for more information.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp3.1 is compatible. |
.NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
-
.NETCoreApp 3.1
- Serilog (>= 2.8.0)
- System.Diagnostics.DiagnosticSource (>= 6.0.0)
-
.NETFramework 4.7.2
- Serilog (>= 2.8.0)
- System.Diagnostics.DiagnosticSource (>= 6.0.0)
-
net5.0
- Serilog (>= 2.8.0)
- System.Diagnostics.DiagnosticSource (>= 6.0.0)
-
net6.0
- Serilog (>= 2.8.0)
- System.Diagnostics.DiagnosticSource (>= 6.0.0)
NuGet packages (37)
Showing the top 5 NuGet packages that depend on Serilog.Enrichers.Span:
Package | Downloads |
---|---|
Genocs.Logging
The logging library. |
|
Newguys.Telemetry
Package Description |
|
Rocket.Surgery.LaunchPad.Serilog
Package Description |
|
ProjectOrigin.ServiceCommon
This library contains common service code to more easily create streamlined services. |
|
SparkRoseDigital.Infrastructure
This library should be used for cross-cutting infrastructural concerns: logging, tracing, caching, message broker communication, health checks, email communication. |
GitHub repositories (13)
Showing the top 5 popular GitHub repositories that depend on Serilog.Enrichers.Span:
Repository | Stars |
---|---|
fullstackhero/dotnet-starter-kit
Production Grade Cloud-Ready .NET 9 Starter Kit (Web API + Blazor Client) with Multitenancy Support, and Clean/Modular Architecture that saves roughly 200+ Development Hours! All Batteries Included.
|
|
Dotnet-Boxed/Templates
.NET project templates with batteries included, providing the minimum amount of code required to get you going faster.
|
|
exceptionless/Exceptionless
Exceptionless application
|
|
meysamhadeli/monolith-to-cloud-architecture
A practical architecture styles for migrating from legacy monolith to modern cloud native application with the latest technologies and architectures like Vertical Slice Architecture, Event Sourcing, CQRS, DDD, gRpc, MongoDB, RabbitMq, and Masstransit in .Net 9.
|
|
bing-framework/Bing.NetCore
Bing是基于 .net core 3.1 的框架,旨在提升团队的开发输出能力,由常用公共操作类(工具类、帮助类)、分层架构基类,第三方组件封装,第三方业务接口封装等组成。
|
Version | Downloads | Last updated |
---|---|---|
3.1.0 | 13,588,769 | 1/10/2023 |
3.0.0 | 1,412,220 | 11/9/2022 |
2.3.0 | 4,237,850 | 3/30/2022 |
2.2.0 | 269,616 | 2/22/2022 |
2.1.0 | 136,788 | 2/9/2022 |
2.0.1 | 1,106,569 | 11/22/2021 |
2.0.0 | 46,407 | 11/9/2021 |
1.4.0 | 443,889 | 9/7/2021 |
1.3.0 | 256,382 | 8/5/2021 |
1.2.0 | 1,116,350 | 4/5/2021 |
1.1.0 | 165,141 | 1/6/2021 |
1.0.1 | 41,814 | 11/23/2020 |
1.0.0 | 7,542 | 11/20/2020 |