getsentry / getsentry/sentry-dotnet

Improve guidance for .NET Worker Services

Open
#2,274 11 comments 2 reactions 0 assignees View on GitHub
.NET Docs Feature Samples
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

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.