Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Microsoft.Extensions.Telemetry README #4671

Merged
merged 5 commits into from Nov 6, 2023

Conversation

joperezr
Copy link
Member

@joperezr joperezr commented Nov 5, 2023

Adding README for Microsoft.Extensions.Telemetry and making one small clarification on one of the Compliance READMEs to explain how RedactorProviders should be used.

Microsoft Reviewers: Open in CodeFlow

joperezr and others added 3 commits November 6, 2023 13:27
Co-authored-by: Chris Ross <Tratcher@Outlook.com>
Co-authored-by: Sébastien Ros <sebastienros@gmail.com>
@joperezr joperezr enabled auto-merge (squash) November 6, 2023 21:40
@joperezr joperezr merged commit 96b14eb into release/8.0 Nov 6, 2023
6 checks passed
@joperezr joperezr deleted the joperezr/TelemetryReadme branch November 6, 2023 22:02
options.ApplyDiscriminator = true;
});

builder.Services.AddRedaction(); // <- This call is required in order for the redactor provider to be added into the service collection.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC this call requires Microsoft.Extensions.Compliance.Redaction to be referenced


```csharp
// Enable log enrichment.
builder.EnableEnrichment(options =>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The extension method should be applied on an ILoggingBuilder

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same applies to EnableRedaction() call

@github-actions github-actions bot locked and limited conversation to collaborators Dec 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants