Skip to content

Commit

Permalink
Fixes in "Telemetry" README.md (#5075)
Browse files Browse the repository at this point in the history
  • Loading branch information
xakep139 committed Apr 2, 2024
1 parent 9f99a58 commit 7271d19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Libraries/Microsoft.Extensions.Telemetry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Offers additional logging capabilities like stack trace capturing, exception mes

```csharp
// Enable log enrichment.
builder.EnableEnrichment(options =>
builder.Logging.EnableEnrichment(options =>
{
options.CaptureStackTraces = true;
options.IncludeExceptionMessage = true;
Expand All @@ -94,7 +94,7 @@ builder.EnableEnrichment(options =>
builder.Services.AddServiceLogEnricher(); // <- This call is required in order for the enricher to be added into the service collection.
// Enable log redaction
builder.EnableRedaction(options =>
builder.Logging.EnableRedaction(options =>
{
options.ApplyDiscriminator = true;
});
Expand Down

0 comments on commit 7271d19

Please sign in to comment.