From 7271d1923ef31670feefbcba1e55751dcc3e6bfa Mon Sep 17 00:00:00 2001 From: Nikita Balabaev Date: Tue, 2 Apr 2024 22:50:39 +0200 Subject: [PATCH] Fixes in "Telemetry" README.md (#5075) --- 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; });