getsentry / getsentry/sentry-dotnet

Make it easier to configure Logging with other integrations

Open
#4,594 2 comments 3 reactions 0 assignees View on GitHub
.NET Improvement Logs Serilog
Dominant language
C#
Stars
770
Forks
248
Avg merge
3d 4h
Merged PRs (30d)
49

Description

It's not obvious to SDK users how they should be configuring `Sentry.SeriLog` and other logging integrations in conjunction with `Sentry.AspNetCore`, `Sentry.Maui` etc. In particular, it's easy for people to make the mistake of using one of the overloads to initialise logging that accepts a DSN (effectively initialising the Sentry SDK twice, with potentially conflicting/contradictory settings).

For example, see:
- https://github.com/getsentry/sentry-dotnet/issues/4589#issuecomment-3364189440

We should find a way to prevent this. One potential solution might be an analyzer.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.