Skip to content

Commit 36b5fcc

Browse files
committed
fixing comments
1 parent fbdfe45 commit 36b5fcc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/core/enrichment/application-log-enricher.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Here's a complete example showing how to set up the service log enricher:
165165

166166
**Program.cs:**
167167

168-
### [.NET 10+](#tab/net10-plus-config)
168+
### [.NET 10+](#tab/net10-plus-full-example)
169169

170170
```csharp
171171
using System.Text.Json;
@@ -193,7 +193,7 @@ logger.LogInformation("This is a sample log message");
193193
await host.RunAsync();
194194
```
195195

196-
### [.NET 9 and earlier](#tab/net9-earlier-config)
196+
### [.NET 9 and earlier](#tab/net9-earlier-full-example)
197197

198198
:::code language="csharp" source="snippets/servicelogenricher/Program.cs" :::
199199

docs/core/enrichment/custom-enricher.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ dotnet package add Microsoft.Extensions.Telemetry.Abstractions
3535

3636
---
3737

38-
## `ILogEnricher` Implementation
38+
## ILogEnricher implementation
3939

4040
Your custom enricher only needs to implement a single <xref:Microsoft.Extensions.Diagnostics.Enrichment.ILogEnricher.Enrich(Microsoft.Extensions.Diagnostics.Enrichment.IEnrichmentTagCollector)> method.
4141
During enrichment, this method is called and given an <xref:Microsoft.Extensions.Diagnostics.Enrichment.IEnrichmentTagCollector> instance. The enricher then calls one of the overloads of
@@ -94,7 +94,7 @@ builder.Services.AddLogEnricher(new AnotherEnricher("anotherKey", "anotherValue"
9494

9595
## Static log enrichers
9696

97-
.NET provides <xref:Microsoft.Extensions.Diagnostics.Enrichment.IStaticLogEnricher> to enrich logs with immutable properties throughout the application lifecycle. Static enrichers execute once during startup initialization, delivering significant performance benefits over standard enrichers that execute for each log record. This approach is particularly advantageous in high-throughput logging scenarios, as it eliminates the overhead of redundant enrichment operations for data that remains constant, that doesn't change throughout the service's lifetime.
97+
.NET provides <xref:Microsoft.Extensions.Diagnostics.Enrichment.IStaticLogEnricher> to enrich logs with immutable properties throughout the application lifecycle. Static enrichers execute once during startup initialization, delivering significant performance benefits over standard enrichers that execute for each log record. This approach is particularly advantageous in high-throughput logging scenarios, as it eliminates the overhead of redundant enrichment operations for data that remains constant throughout the service's lifetime. Although executed only once at startup, the enrichment results are attached to every single log message produced by your application.
9898

9999
```csharp
100100
public class StaticEnricher : IStaticLogEnricher

0 commit comments

Comments
 (0)