Skip to content

Commit 937063b

Browse files
Update .NET profiling support references (#14046)
Documentation for .NET profiling support was updated to reflect compatibility with .NET 8.0+ only, addressing observed compilation issues on .NET 6.0. Specific changes include: * In `docs/platforms/dotnet/common/profiling/index.mdx`, the alert message was updated to state profiling is "available in _Alpha_ on .NET 8.0+". * `docs/platforms/dotnet/common/profiling/troubleshooting/index.mdx` now specifies support for ".NET 8.0+" instead of ".NET 6.0, .NET 7.0 and .NET 8.0". * The profiling onboarding alert in `docs/platforms/dotnet/index.mdx` was changed to "available in Alpha on .NET 8.0 and newer". * The JSON alert message in `public/_platforms/dotnet/profiling-onboarding-0-alert.json` was updated from "for .NET 6.0+" to "for .NET 8.0+". These updates ensure the documentation accurately reflects the required .NET version for profiling, preventing future compatibility issues. Co-authored-by: Cursor Agent <cursoragent@cursor.com>
1 parent dc9b95b commit 937063b

File tree

4 files changed

+8
-22
lines changed

4 files changed

+8
-22
lines changed

docs/platforms/dotnet/common/profiling/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ With [profiling](/product/explore/profiling/), Sentry allows you to collect and
1111

1212
<Alert>
1313

14-
Sentry profiling for .NET is available in _Alpha_ on .NET 6.0+ (tested on .NET 7.0 & .NET 8.0 as well) for:
14+
Sentry profiling for .NET is available in _Alpha_ on .NET 8.0+ for:
1515

1616
- Windows
1717
- Linux
@@ -30,7 +30,7 @@ Additionally, for all platforms except iOS/Mac Catalyst, you need to add a depen
3030
dotnet add package Sentry.Profiling
3131
```
3232

33-
Profiling depends on Sentrys tracing product being enabled beforehand. To enable tracing in the SDK, set the `TracesSampleRate` option to the desired value.
33+
Profiling depends on Sentry's tracing product being enabled beforehand. To enable tracing in the SDK, set the `TracesSampleRate` option to the desired value.
3434

3535
```csharp
3636
SentrySdk.Init(options =>

docs/platforms/dotnet/common/profiling/troubleshooting/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ If you don't see any profiling data in [sentry.io](https://sentry.io), you can t
1717
If you'd like to initialize it synchronously, set the desired timeout argument, e.g. `options.AddProfilingIntegration(TimeSpan.FromMilliseconds(500))` to wait up to 500 ms for the profiler to start up.
1818
Note: this doesn't apply to iOS and Mac Catalyst which use native profiling, are initialized synchronously, and the timeout argument is ignored.
1919
- Maybe you're trying to capture profiles on a platform that is currently **not** supported, notably:
20-
- .NET Framework; we only support .NET 6.0, .NET 7.0 and .NET 8.0
20+
- .NET Framework; we only support .NET 8.0+
2121
- Native AOT - this is only supported for iOS and Mac Catalyst (alongside the standard Mono AOT)
2222
- Android - currently not supported at all
2323

docs/platforms/dotnet/index.mdx

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -34,29 +34,15 @@ Select which Sentry features you'd like to install in addition to Error Monitori
3434

3535
<OnboardingOptionButtons options={['error-monitoring', 'performance', 'profiling']}/>
3636

37-
Sentry captures data by using an SDK within your applications runtime. These are platform-specific and allow Sentry to have a deep understanding of how your application works.
37+
Sentry captures data by using an SDK within your application's runtime. These are platform-specific and allow Sentry to have a deep understanding of how your application works.
3838

3939
Install the **NuGet** package to add the Sentry dependency:
4040

41-
<OnboardingOption optionId="profiling" hideForThisOption>
42-
```shell {tabTitle:.NET Core CLI}
43-
dotnet add package Sentry -v {{@inject packages.version('sentry.dotnet') }}
44-
```
45-
46-
```powershell {tabTitle:Package Manager}
47-
Install-Package Sentry -Version {{@inject packages.version('sentry.dotnet') }}
48-
```
49-
50-
```shell {tabTitle:Paket CLI}
51-
paket add Sentry --version {{@inject packages.version('sentry.dotnet') }}
52-
```
53-
</OnboardingOption>
54-
5541
<OnboardingOption optionId="profiling">
5642

5743
<Alert>
5844

59-
Sentry profiling for .NET is available in Alpha on .NET 6.0 and newer.
45+
Sentry profiling for .NET is available in Alpha on .NET 8.0 and newer.
6046

6147
</Alert>
6248

@@ -73,7 +59,7 @@ Install the **NuGet** package to add the Sentry dependency:
7359
```shell {tabTitle:Paket CLI}
7460
paket add Sentry --version {{@inject packages.version('sentry.dotnet') }}
7561
paket add Sentry.Profiling --version {{@inject packages.version('sentry.dotnet.profiling') }}
76-
```
62+
```
7763
</OnboardingOption>
7864

7965
## Configure
@@ -103,4 +89,4 @@ SentrySdk.Init(options =>
10389

10490
This snippet includes an intentional error, so you can test that everything is working as soon as you set it up.
10591

106-
<PlatformContent includePath="getting-started-verify" />
92+
<PlatformContent includePath="getting-started-verify" />
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"key":"dotnet.profiling-onboarding-0-alert","type":"language","doc_link":"https://docs.sentry.io/platforms/dotnet/profiling/","name":".NET","aliases":[],"categories":[],"body":"<div class=\"alert warning\">\nProfiling in .NET is currently available in alpha for .NET 6.0+ on Windows, Linux, macOS, iOS and Mac Catalyst.\nThere may be some bugs. We recognize the irony.\n</div>"}
1+
{"key":"dotnet.profiling-onboarding-0-alert","type":"language","doc_link":"https://docs.sentry.io/platforms/dotnet/profiling/","name":".NET","aliases":[],"categories":[],"body":"<div class=\"alert warning\">\nProfiling in .NET is currently available in alpha for .NET 8.0+ on Windows, Linux, macOS, iOS and Mac Catalyst.\nThere may be some bugs. We recognize the irony.\n</div>"}

0 commit comments

Comments
 (0)