VOOZH about

URL: https://www.nuget.org/packages/Serilog.Enrichers.Span/

⇱ NuGet Gallery | Serilog.Enrichers.Span 3.1.0




👁 Image
Serilog.Enrichers.Span 3.1.0

This package has a SemVer 2.0.0 package version: 3.1.0+build.538.
dotnet add package Serilog.Enrichers.Span --version 3.1.0
 
 
NuGet\Install-Package Serilog.Enrichers.Span -Version 3.1.0
 
 
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Serilog.Enrichers.Span" Version="3.1.0" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Serilog.Enrichers.Span" Version="3.1.0" />
 
Directory.Packages.props
<PackageReference Include="Serilog.Enrichers.Span" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Serilog.Enrichers.Span --version 3.1.0
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Serilog.Enrichers.Span, 3.1.0"
 
 
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Serilog.Enrichers.Span@3.1.0
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Serilog.Enrichers.Span&version=3.1.0
 
Install as a Cake Addin
#tool nuget:?package=Serilog.Enrichers.Span&version=3.1.0
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

👁 Serilog.Enrichers.Span NuGet Package
👁 Serilog.Enrichers.Span NuGet Package Downloads
👁 Twitter URL
👁 Twitter Follow

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 Ubuntu Build Status
Azure Pipelines Mac 👁 Azure Pipelines Mac Build Status
Azure Pipelines Windows 👁 Azure Pipelines Windows Build Status
Azure Pipelines Overall 👁 Azure Pipelines Overall Build Status
👁 Azure DevOps Build History
GitHub Actions Ubuntu, Mac & Windows 👁 GitHub Actions Status
👁 GitHub Actions Build History
AppVeyor Ubuntu, Mac & Windows 👁 AppVeyor Build status
👁 AppVeyor Build History

Contributions and Thanks

Please view the contributing guide for more information.

Product Versions Compatible and additional computed target framework versions.
.NET net5.0 net5.0 was computed.  net5.0-windows net5.0-windows was computed.  net6.0 net6.0 is compatible.  net6.0-android net6.0-android was computed.  net6.0-ios net6.0-ios was computed.  net6.0-maccatalyst net6.0-maccatalyst was computed.  net6.0-macos net6.0-macos was computed.  net6.0-tvos net6.0-tvos was computed.  net6.0-windows net6.0-windows was computed.  net7.0 net7.0 is compatible.  net7.0-android net7.0-android was computed.  net7.0-ios net7.0-ios was computed.  net7.0-maccatalyst net7.0-maccatalyst was computed.  net7.0-macos net7.0-macos was computed.  net7.0-tvos net7.0-tvos was computed.  net7.0-windows net7.0-windows was computed.  net8.0 net8.0 was computed.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
.NET Core netcoreapp2.0 netcoreapp2.0 was computed.  netcoreapp2.1 netcoreapp2.1 was computed.  netcoreapp2.2 netcoreapp2.2 was computed.  netcoreapp3.0 netcoreapp3.0 was computed.  netcoreapp3.1 netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 netstandard2.0 is compatible.  netstandard2.1 netstandard2.1 was computed. 
.NET Framework net461 net461 was computed.  net462 net462 was computed.  net463 net463 was computed.  net47 net47 was computed.  net471 net471 was computed.  net472 net472 is compatible.  net48 net48 was computed.  net481 net481 was computed. 
MonoAndroid monoandroid monoandroid was computed. 
MonoMac monomac monomac was computed. 
MonoTouch monotouch monotouch was computed. 
Tizen tizen40 tizen40 was computed.  tizen60 tizen60 was computed. 
Xamarin.iOS xamarinios xamarinios was computed. 
Xamarin.Mac xamarinmac xamarinmac was computed. 
Xamarin.TVOS xamarintvos xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (84)

Showing the top 5 NuGet packages that depend on Serilog.Enrichers.Span:

Package Downloads
Genocs.Logging

Logging abstractions and extensions for Genocs applications.

CucurbIT.Infrastructure.Logging.Targets

Package Description

Rocket.Surgery.LaunchPad.Serilog

Package Description

Newguys.Telemetry

Package Description

ProjectOrigin.ServiceCommon

This library contains common service code to more easily create streamlined services.

GitHub repositories (10)

Showing the top 10 popular GitHub repositories that depend on Serilog.Enrichers.Span:

Repository Stars
fullstackhero/dotnet-starter-kit
Production Grade Cloud-Ready .NET 10 Starter Kit (Web API + React 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
microsoft/kernel-memory
Research project. A Memory solution for users, teams, and applications.
bing-framework/Bing.NetCore
Bing是基于 .net core 3.1 的框架,旨在提升团队的开发输出能力,由常用公共操作类(工具类、帮助类)、分层架构基类,第三方组件封装,第三方业务接口封装等组成。
damikun/trouble-training
FullStack DDD/CQRS with GraphQL workshop including distributed tracing and monitoring. This shows the configuration from React frontend to .Net backend.
mehdihadeli/food-delivery-modular-monolith
🌭 A practical and imaginary food and grocery delivery modular monolith, built with .Net 8, Domain-Driven Design, CQRS, Vertical Slice Architecture, Event-Driven Architecture, and the latest technologies.
philosowaffle/peloton-to-garmin
Convert workout data from Peloton into JSON/TCX/FIT files and automatically upload to Garmin Connect
babaktaremi/Clean-Architecture-Template
🧹 Ready to develop template based on clean architecture principles. Supports ASP NET Core Identity integrated with JWE tokens, OTP authentication, stand alone plugin development, CQRS pattern using MediatR library and dynamic permission management system out of the box
Letterbook/Letterbook
Sustainable federated social media built for open correspondence
Version Downloads Last Updated
3.1.0 31,868,336 1/10/2023
3.0.0 1,684,998 11/9/2022
2.3.0 5,121,282 3/30/2022
2.2.0 327,101 2/22/2022
2.1.0 161,507 2/9/2022
2.0.1 1,369,391 11/22/2021
2.0.0 56,519 11/9/2021
1.4.0 506,265 9/7/2021
1.3.0 295,824 8/5/2021
1.2.0 1,459,441 4/5/2021
1.1.0 177,719 1/6/2021
1.0.1 50,174 11/23/2020
1.0.0 15,882 11/20/2020