Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.32 KB

README.md

File metadata and controls

44 lines (31 loc) · 1.32 KB

NuGet NuGet

It collects and updates the information that is not automatically collected among the various fields of sentry contexts using WMI

Usage

Using SDK library

Just install package in the Nuget

Install-Package DiagnosticsExtensions.Sentry

Let's getting started using the library

Configurations

        SentryService.Instance.Init(option => {
            option.AddEventProcessor(new DiagnosticsEventProcessor());
            option.AddTransactionProcessor(new DiagnosticsTransactionProcessor());
        });

        Application.Run(new Form1());

Add Breadcrumbs

    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            SentryService.Instance.AddBreadcrumb("websocket-starting-failed", "middleware", BreadcrumbTypes.ERROR, Sentry.BreadcrumbLevel.Error);
        }