sentry-dotnet README

The project's README from github.com/getsentry/sentry-dotnet. As one markdown file: README.md.


Bad software is everywhere, and we're tired of it. Sentry is on a mission to help developers write better software faster, so we can get back to enjoying technology. If you want to join us, check out our open positions.

Sentry SDK for .NET

build codecov X Follow Discord Chat

Integrations Downloads NuGet Stable NuGet Preview Documentation
Sentry Downloads NuGet NuGet Documentation
Sentry.AspNetCore Downloads NuGet NuGet Documentation
Sentry.AspNetCore.Blazor.WebAssembly Downloads NuGet NuGet Documentation
Sentry.AspNetCore.Grpc Downloads NuGet NuGet Documentation
Sentry.AspNet Downloads NuGet NuGet Documentation
Sentry.DiagnosticSource Downloads NuGet NuGet Documentation
Sentry.EntityFramework Downloads NuGet NuGet Documentation
Sentry.Extensions.AI Downloads NuGet NuGet Documentation
Sentry.Extensions.Logging Downloads NuGet NuGet Documentation
Sentry.Google.Cloud.Functions Downloads NuGet NuGet Documentation
Sentry.Hangfire Downloads NuGet NuGet Documentation
Sentry.Log4Net Downloads NuGet NuGet Documentation
Sentry.Maui Downloads NuGet NuGet Documentation
Sentry.NLog Downloads NuGet NuGet Documentation
Sentry.OpenTelemetry Downloads NuGet NuGet Documentation
Sentry.OpenTelemetry.Exporter Downloads NuGet NuGet Documentation
Sentry.Profiling Downloads NuGet NuGet Documentation
Sentry.Serilog Downloads NuGet NuGet Documentation

More Sentry .NET Integrations

Sentry offers other integrations that are not part of this repository:

Looking for something else? Let us know by raising an issue.

Documentation

Each NuGet package in the table above has its custom view of the docs. Click on the badge to find the best documentation for your use case.

Sentry has extensive documentation for its SDKs on https://docs.sentry.io.

Samples

Consider taking a look at the samples directory for different types of apps and example usages of the SDK. Looking for a way to connect Aspire with Sentry? We've got a sample for that too!

Talks

Resources

Documentation Discussions Discord Chat Stack Overflow X Follow

sentry-dotnet (getsentry/sentry-dotnet)

Searching Database…

这是什么?适用于 .NET 的 Sentry SDK —— 它从 .NET 应用中捕获崩溃、错误以及性能/遥测数据,并发送到 Sentry 进行监控。
这是一个 SDK,还是一堆独立的包?它是一组 NuGet 包:一个 Sentry 核心库,外加针对 ASP.NET Core、Blazor WebAssembly、gRPC、MAUI、EF、日志框架、Hangfire、OpenTelemetry 等的独立集成包。
怎么把它添加到我的 .NET 项目?安装与应用类型匹配的 NuGet 包(例如核心用 'Sentry',ASP.NET Core 用 'Sentry.AspNetCore',MAUI 用 'Sentry.Maui');每个包的配置方法见各自的文档。
有单独的预览版和稳定版吗?有,每个集成包都同时提供 Stable 和 Preview 两个 NuGet 源,你可以选择使用预览功能,而不必在整个项目范围内使用不稳定版本。
它也适用于 Blazor WebAssembly 和 gRPC 应用吗?适用,有针对 Blazor WebAssembly 和 gRPC 的专用包,此外还支持常规 ASP.NET Core、MAUI(Android/iOS)以及 Google Cloud Functions。
Unity 或 PowerShell 有单独的 SDK 吗?有,Sentry.Unity 和 Sentry.PowerShell 作为独立的 SDK 在本仓库之外维护,分别用于 Unity 游戏和 PowerShell 脚本。
Sentry.OpenTelemetry 是做什么用的?它负责接入 OpenTelemetry 追踪,使通过 OTel 采集的分布式追踪数据导出到 Sentry 的性能监控中。
Sentry.Profiling 增加了什么?它增加了应用性能分析,在 Sentry 已报告的错误之外,还会呈现热点代码路径和瓶颈。
在哪里可以找到可运行的示例?仓库的 samples 目录包含针对不同应用类型的示例项目,其中一个演示了如何把 .NET Aspire 与 Sentry 连接起来。
Creator
getsentry
Size
132.6 MB
Stars
768
Age
8y
Commits · 90 Days