From 0ea80c3fcfd6e8badac35fee9b4b1dc0427e5c4d Mon Sep 17 00:00:00 2001 From: Nikita Balabaev Date: Tue, 2 Apr 2024 16:52:26 +0200 Subject: [PATCH] Fixes in "Telemetry" README.md --- src/Libraries/Microsoft.Extensions.Telemetry/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Libraries/Microsoft.Extensions.Telemetry/README.md b/src/Libraries/Microsoft.Extensions.Telemetry/README.md index 151c2bdabbf..525203ac5db 100644 --- a/src/Libraries/Microsoft.Extensions.Telemetry/README.md +++ b/src/Libraries/Microsoft.Extensions.Telemetry/README.md @@ -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; @@ -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; });