Skip to content

WIP: Logs for Sentry.Extensions.Logging and integrations for Sentry.AspNetCore and Sentry.Maui #4193

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

Draft
wants to merge 10 commits into
base: feat/logs-initial-api
Choose a base branch
from

Conversation

Flash0ver
Copy link
Member

Initial implementation for Sentry.Extensions.Logging
Initial integrations for

  • Sentry.AspNetCore
  • Sentry.Maui

Logs: https://develop.sentry.dev/sdk/telemetry/logs/

@Flash0ver Flash0ver self-assigned this May 16, 2025
@Flash0ver Flash0ver added the Logs label May 16, 2025

_ = logging.AddFilter<SentryAspNetCoreLoggerProvider>(
"Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware",
LogLevel.None);
_ = logging.AddFilter<SentryAspNetCoreStructuredLoggerProvider>(static (string? categoryName, LogLevel logLevel) =>
{
return categoryName is null
Copy link
Member

Choose a reason for hiding this comment

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

are these guaranteed to be all of the categories we add?
I wonder if there's some "Constant" or something with these, we could reflect on and write a test to make sure we filter all of them out

Copy link
Member Author

@Flash0ver Flash0ver May 16, 2025

Choose a reason for hiding this comment

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

I'm fairly certain ... not quite positive though.
Those are the ILogger<T> usages that I found in our packages.
I definitely have to add a test for that ... probably as an ASP.NET Core integration test ... I see we have the infrastructure already setup via the "TestUtils" project.

@Flash0ver Flash0ver changed the base branch from feat/logs-initial-api to main May 21, 2025 14:58
@Flash0ver Flash0ver changed the base branch from main to feat/logs-initial-api May 21, 2025 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants