Skip to content

Explain how to configure filters for structured logs#16592

Open
jamescrosswell wants to merge 2 commits intomasterfrom
structured-log-filters
Open

Explain how to configure filters for structured logs#16592
jamescrosswell wants to merge 2 commits intomasterfrom
structured-log-filters

Conversation

@jamescrosswell
Copy link
Collaborator

cc: @Flash0ver for review

PRE-MERGE CHECKLIST

Make sure you've checked the following before merging your changes:

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

@vercel
Copy link

vercel bot commented Feb 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sentry-docs Ready Ready Preview, Comment Feb 26, 2026 8:49pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
develop-docs Ignored Ignored Preview Feb 26, 2026 8:49pm

Request Review

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request adds documentation explaining how to configure filters for structured logs in both Serilog and Microsoft.Extensions.Logging integrations. It resolves issue #4952 by clarifying that structured log filtering is controlled differently from breadcrumbs and events.

Changes:

  • Added explanatory text pointing users to the appropriate logging framework's filtering mechanisms for structured logs
  • Added JSON configuration examples alongside existing C# code examples in the Serilog guide
  • Added a note in the extensions-logging guide clarifying that filters only apply to breadcrumbs/events, not structured logs

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
docs/platforms/dotnet/guides/serilog/index.mdx Added explanation about Serilog MinimumLogLevel for structured log filtering and two appsettings.json configuration examples
docs/platforms/dotnet/guides/extensions-logging/index.mdx Added explanation about Microsoft.Extensions.Logging filtering, updated example configuration, and added a note clarifying filter scope

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Explain how to configure filters for structured logs

2 participants