Skip to content

Improve guidance for .NET Worker Services #2274

@mattjohnsonpint

Description

@mattjohnsonpint

Problem Statement

We should provide documentation and samples for integrating Sentry with .NET Worker Services.

Note, we already have the Generic Host sample, 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 Add Scope.Clear and Scope.ClearBreadcrumbs #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

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions