getsentry / getsentry/sentry-dotnet
Make it easier to configure Logging with other integrations
Open
.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
Assessment
This issue has not been assessed yet.