getsentry / getsentry/sentry-dotnet
Improve guidance for .NET Worker Services
- Dominant language
- C#
- Stars
- 770
- Forks
- 248
- Avg merge
- 3d 4h
- Merged PRs (30d)
- 49
Description
### Problem Statement
We should provide documentation and samples for integrating Sentry with [.NET Worker Services](
https://learn.microsoft.com/dotnet/core/extensions/workers).
Note, we already have the [Generic Host sample](https://github.com/getsentry/sentry-dotnet/tree/main/samples/Sentry.Samples.GenericHost), but this is slightly different.
### Solution Brainstorm
- [ ] Build a sample starting from `dotnet new worker`
- [ ] Add `Sentry.Extensions.Logging`
- [ ] Clear the scope before the first execution (requires #2272)
- [ ] Push and dispose a new scope for each inner loop of the worker
- [ ] Enable tracing, and start/finish a new transaction for each inner loop of the worker
- [ ] Add a new guide to the Sentry .NET docs
Contributor guide
Assessment
This issue has not been assessed yet.