Elastic.Apm.SerilogEnricher
1.4.0-beta1
Prefix Reserved
See the version list below for details.
dotnet add package Elastic.Apm.SerilogEnricher --version 1.4.0-beta1
NuGet\Install-Package Elastic.Apm.SerilogEnricher -Version 1.4.0-beta1
<PackageReference Include="Elastic.Apm.SerilogEnricher" Version="1.4.0-beta1" />
paket add Elastic.Apm.SerilogEnricher --version 1.4.0-beta1
#r "nuget: Elastic.Apm.SerilogEnricher, 1.4.0-beta1"
// Install Elastic.Apm.SerilogEnricher as a Cake Addin #addin nuget:?package=Elastic.Apm.SerilogEnricher&version=1.4.0-beta1&prerelease // Install Elastic.Apm.SerilogEnricher as a Cake Tool #tool nuget:?package=Elastic.Apm.SerilogEnricher&version=1.4.0-beta1&prerelease
Elastic APM Serilog Enricher
This enricher adds the transaction id and trace id to every Serilog log message that is created during a transaction.
How to Enable
var logger = new LoggerConfiguration()
.Enrich.WithElasticApmCorrelationInfo()
.WriteTo.Console(outputTemplate: "[{ElasticApmTraceId} {ElasticApmTransactionId} {Message:lj} {NewLine}{Exception}")
.CreateLogger();
In the code snippet above Enrich.WithElasticApmCorrelationInfo()
enables the enricher from this project, which will set 2 properties for log lines that are created during a transaction:
ElasticApmTransactionId
ElasticApmTraceId
In the outputTemplate
of the Console sink these two properties are printed, of course they can be used with any sink.
Prerequisite
The prerequisite for this to work is a configured Elastic APM Agent. If the agent is not configured the enricher won't add anything to the logs.
Copyright and License
This software is Copyright (c) 2014-2020 by Elasticsearch BV.
This is free software, licensed under: The Apache License Version 2.0.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6.1
- Elastic.Apm (>= 1.2.0)
- Serilog (>= 2.0.0)
-
.NETStandard 2.0
- Elastic.Apm (>= 1.2.0)
- Serilog (>= 2.0.0)
NuGet packages (13)
Showing the top 5 NuGet packages that depend on Elastic.Apm.SerilogEnricher:
Package | Downloads |
---|---|
Sitko.Core.ElasticStack
Sitko.Core is a set of libraries to help build .NET Core applications fast |
|
BioEngine.Extra.ElasticStack
Package Description |
|
DDPlanet.Logging
Simple logging framework developed for ELK stack based on Serilog providing fully configured logging in just a couple lines of code |
|
Nox.Core
Nox Core Library for all kinf of applications: WebApis, UI, etc.. |
|
Apprio.Enablement.Telemetry.Elasticsearch
Package Description |
GitHub repositories (4)
Showing the top 4 popular GitHub repositories that depend on Elastic.Apm.SerilogEnricher:
Repository | Stars |
---|---|
damikun/trouble-training
FullStack DDD/CQRS with GraphQL workshop including distributed tracing and monitoring. This shows the configuration from React frontend to .Net backend.
|
|
aspose-cells/Aspose.Cells-for-.NET
Aspose.Cells for .NET examples, plugins and showcases
|
|
sitkoru/Sitko.Core
Sitko.Core is a set of libraries to help build .NET Core applications fast
|
|
gizemcifguvercin/E-News
This project is about how we can send news to related news agency. You can look at Use Case, Architecture, Technical Overview on README file
|
Version | Downloads | Last updated |
---|---|---|
8.12.3 | 23,063 | 11/26/2024 |
8.12.2 | 68,087 | 10/22/2024 |
8.12.1 | 43,960 | 10/3/2024 |
8.12.0 | 15,031 | 9/26/2024 |
8.11.1 | 289,934 | 6/10/2024 |
8.11.0 | 243,543 | 4/10/2024 |
8.6.1 | 1,385,917 | 8/3/2023 |
8.6.0 | 566,417 | 5/9/2023 |
8.4.0-alpha4 | 1,441 | 3/28/2023 |
8.4.0-alpha3 | 807 | 3/15/2023 |
8.4.0-alpha2 | 3,158 | 3/1/2023 |
8.4.0-alpha1 | 376 | 2/20/2023 |
1.6.0-alpha1 | 111,991 | 6/2/2021 |
1.5.3 | 6,946,521 | 6/1/2021 |
1.5.1 | 2,085,313 | 6/3/2020 |
1.5.0 | 168,298 | 3/30/2020 |
1.4.4 | 1,645 | 3/25/2020 |
1.4.3 | 169,032 | 3/16/2020 |
1.4.2 | 27,619 | 3/6/2020 |
1.4.1 | 8,636 | 2/26/2020 |
1.4.0 | 13,984 | 1/29/2020 |
1.4.0-beta1 | 624 | 1/7/2020 |