@@ -38,35 +38,34 @@ Sentry captures data by using an SDK within your application's runtime. These ar
38
38
39
39
Install the ** NuGet** package to add the Sentry dependency:
40
40
41
- <OnboardingOption optionId = " profiling" >
41
+ <OnboardingOption optionId = " error-monitoring" >
42
+
43
+ ``` shell {tabTitle:.NET Core CLI}
44
+ dotnet add package Sentry -v {{@inject packages.version(' sentry.dotnet' ) }}
45
+ ```
42
46
43
- <Alert >
47
+ ``` powershell {tabTitle:Package Manager}
48
+ Install-Package Sentry. -Version {{@inject packages.version('sentry.dotnet') }}
49
+ ```
44
50
45
- Sentry profiling for .NET is available in Alpha on .NET 8.0 and newer.
51
+ </ OnboardingOption >
46
52
47
- </ Alert >
53
+ < OnboardingOption optionId = " profiling " >
48
54
49
55
``` shell {tabTitle:.NET Core CLI}
50
- dotnet add package Sentry -v {{@inject packages.version(' sentry.dotnet' ) }}
51
56
dotnet add package Sentry.Profiling -v {{@inject packages.version(' sentry.dotnet.profiling' ) }}
52
57
```
53
58
54
59
``` powershell {tabTitle:Package Manager}
55
- Install-Package Sentry -Version {{@inject packages.version('sentry.dotnet') }}
56
60
Install-Package Sentry.Profiling -Version {{@inject packages.version('sentry.dotnet.profiling') }}
57
61
```
58
62
59
- ``` shell {tabTitle:Paket CLI}
60
- paket add Sentry --version {{@inject packages.version(' sentry.dotnet' ) }}
61
- paket add Sentry.Profiling --version {{@inject packages.version(' sentry.dotnet.profiling' ) }}
62
- ```
63
63
</OnboardingOption >
64
64
65
65
## Configure
66
66
67
67
To capture all errors, even the one during the startup of your application, you should initialize the Sentry .NET SDK as soon as possible.
68
68
69
-
70
69
``` csharp
71
70
SentrySdk .Init (options =>
72
71
{
@@ -89,4 +88,4 @@ SentrySdk.Init(options =>
89
88
90
89
This snippet includes an intentional error, so you can test that everything is working as soon as you set it up.
91
90
92
- <PlatformContent includePath = " getting-started-verify" />
91
+ <PlatformContent includePath = " getting-started-verify" />
0 commit comments