Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/platforms/dotnet/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,17 @@ Install the **NuGet** package to add the Sentry dependency:
</Note>

```shell {tabTitle:.NET Core CLI}
dotnet add package Sentry -v {{@inject packages.version('sentry.dotnet') }}
dotnet add package Sentry.Profiling -v {{@inject packages.version('sentry.dotnet.profiling') }}
```

```powershell {tabTitle:Package Manager}
Install-Package Sentry -Version {{@inject packages.version('sentry.dotnet') }}
Install-Package Sentry.Profiling -Version {{@inject packages.version('sentry.dotnet.profiling') }}
```

```shell {tabTitle:Paket CLI}
paket add Sentry --version {{@inject packages.version('sentry.dotnet') }}
paket add Sentry.Profiling --version {{@inject packages.version('sentry.dotnet.profiling') }}
```
</OnboardingOption>
Expand All @@ -75,7 +78,6 @@ SentrySdk.Init(options =>
{
options.Dsn = "https://[email protected]/5428537";
options.Debug = true;
options.AutoSessionTracking = true;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also removed this since it can't be added on a blank dotnet instruction. Otherwise this would be on by default.

On mobile for example it's already on by default. On aspnet it takes no effect since no server mode was added

// A fixed sample rate of 1.0 - 100% of all transactions are getting sent
options.TracesSampleRate = 1.0f;
// A sample rate for profiling - this is relative to TracesSampleRate
Expand Down
Loading