Skip to content

Commit 10e4a72

Browse files
Fix SDK getting started pages (onboarding options) (#12960)
* fix(elixir): code block formatting * fix(.net): onboarding options * fix(php): onboarding options * fix(js): angular onboarding options * fix(js): astro onboarding options * fix(js): aws lambda onboarding options * fix(js): azure functions onboarding options * fix(js): bun onboarding options * fix(js): capacitor onboarding options * fix(js): cloudflare onboarding options * fix(js): connect onboarding options * fix(js): cordova onboarding options * fix(js): deno onboarding options * fix(js): electron onboarding options * fix(js): ember onboarding options * fix(js): deno code snippet for npm * fix(js): express onboarding options * fix(js): fastify onboarding options * fix(js): gatsby onboarding options * fix(js): gcp functions onboarding options * fix(js): hapi onboarding options * fix(js): hono onboarding options * fix(js): koa onboarding options * fix(js): nest.js onboarding options * fix(js): next.js onboarding options * fix(js): nuxt onboarding options * fix(js): react onboarding options * fix(js): react-router onboarding options * fix(js): remix onboarding options * fix(js): solid onboarding options * fix(js): solidstart onboarding options * fix(js): svelte onboarding options * fix(js): sveltekit onboarding options * fix(js): vue onboarding options * fix(js): wasm onboarding options
1 parent 074644f commit 10e4a72

File tree

152 files changed

+2432
-1860
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

152 files changed

+2432
-1860
lines changed

docs/platforms/dotnet/guides/aspnet/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ as well as your logs as breadcrumbs. The logging integrations also capture event
3434
You configure the SDK in the `Global.asax.cs`:
3535

3636

37-
```csharp {"onboardingOptions": {"performance": "21-24, 34-43"}}
37+
```csharp {"onboardingOptions": {"performance": "20-23, 33-42"}}
3838
using System;
3939
using System.Web;
4040
using Sentry.AspNet;

docs/platforms/dotnet/guides/aws-lambda/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ All `ASP.NET Core` configurations are valid here. But one configuration in parti
3535
`FlushOnCompletedRequest` ensures all events are flushed out. This is because the general ASP.NET Core hooks for when the process is exiting are not guaranteed to run in a serverless environment. This setting ensures that no event is lost if AWS recycles the process.
3636

3737

38-
```csharp {"onboardingOptions": {"performance": "12-14"}}
38+
```csharp {"onboardingOptions": {"performance": "12-15"}}
3939
public class LambdaEntryPoint : Amazon.Lambda.AspNetCoreServer.APIGatewayProxyFunction
4040
{
4141
protected override void Init(IWebHostBuilder builder)

docs/platforms/dotnet/guides/azure-functions-worker/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ This package extends [Sentry.Extensions.Logging](/platforms/dotnet/guides/extens
3333

3434
Sentry integration with Azure Functions is done by calling `.UseSentry()` and specifying the options, for example:
3535

36-
```csharp {"onboardingOptions": {"performance": "11-13"}}
36+
```csharp {"onboardingOptions": {"performance": "10-12"}}
3737
using Sentry.Azure.Functions.Worker;
3838

3939
var builder = FunctionsApplication.CreateBuilder(args);
@@ -57,7 +57,7 @@ If using the ASP.NET Core integration add `UseSentry` to the `ConfigureFunctions
5757

5858
</Alert>
5959

60-
```csharp
60+
```csharp {"onboardingOptions": {"performance": "11-13"}}
6161
using Sentry.Azure.Functions.Worker;
6262

6363
var host = new HostBuilder()

docs/platforms/dotnet/guides/blazor-webassembly/index.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Sentry provides an integration with Blazor WebAssembly through the [Sentry.AspNe
88

99
## Install
1010

11+
<OnboardingOptionButtons options={['error-monitoring', 'performance']}/>
12+
1113
Add the Sentry dependency to your Blazor WebAssembly application:
1214

1315
```shell {tabTitle:.NET Core CLI}
@@ -26,16 +28,14 @@ Sentry integration with Blazor WebAssembly is done by calling `.UseSentry()` and
2628

2729

2830

29-
```csharp
31+
```csharp {"onboardingOptions": {"performance": "5"}}
3032
var builder = WebAssemblyHostBuilder.CreateDefault(args);
3133
builder.UseSentry(options =>
3234
{
33-
options.Dsn = "___PUBLIC_DSN___";
34-
options.TracesSampleRate = 0.1;
35-
// When configuring for the first time, to see what the SDK is doing:
36-
// options.Debug = true;
37-
38-
35+
options.Dsn = "___PUBLIC_DSN___";
36+
options.TracesSampleRate = 0.1;
37+
// When configuring for the first time, to see what the SDK is doing:
38+
// options.Debug = true;
3939
});
4040

4141
// Captures logError and higher as events

docs/platforms/dotnet/guides/entityframework/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Add the Entity Framework 6 support to your project in one step:
4545

4646
For example, configuring an ASP.NET app with _global.asax_:
4747

48-
```csharp {filename:global.asax} {"onboardingOptions": {"performance": "16-18, 27-36"}}
48+
```csharp {filename:global.asax} {"onboardingOptions": {"performance": "15-17, 26-35"}}
4949
using System;
5050
using System.Configuration;
5151
using Sentry.AspNet;

docs/platforms/dotnet/guides/uwp/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The SDK should be initialized in the constructor of your application class (usua
2828
</Alert>
2929

3030

31-
```csharp {"onboardingOptions": {"performance": "18-21"}}
31+
```csharp {"onboardingOptions": {"performance": "17-20"}}
3232
using Sentry.Protocol;
3333
using UnhandledExceptionEventArgs = Windows.UI.Xaml.UnhandledExceptionEventArgs;
3434

docs/platforms/dotnet/guides/winforms/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ You should also set `Application.SetUnhandledExceptionMode(UnhandledExceptionMod
3030
A complete example of the recommended startup is as follows:
3131

3232

33-
```csharp {"onboardingOptions": {"performance": "32-35"}}
33+
```csharp {"onboardingOptions": {"performance": "31-34"}}
3434
using System;
3535
using System.Windows.Forms;
3636

docs/platforms/dotnet/guides/winui/index.mdx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ In addition to capturing errors, you can monitor interactions between multiple s
3232

3333
Select which Sentry features you'd like to install in addition to Error Monitoring to get the corresponding installation and configuration instructions below.
3434

35-
<OnboardingOptionButtons options={['error-monitoring', 'performance']}/>
36-
37-
```csharp {"onboardingOptions": {"performance": "17-20"}}
35+
```csharp {"onboardingOptions": {"performance": "16-19"}}
3836
using Sentry.Protocol;
3937

4038
sealed partial class App : Application
@@ -50,7 +48,7 @@ sealed partial class App : Application
5048
// When configuring for the first time, to see what the SDK is doing:
5149
options.Debug = true;
5250

53-
// Set traces_sample_rate to 1.0 to capture 100% of transactions for tracing.
51+
// Set TracesSampleRate to 1.0 to capture 100% of transactions for tracing.
5452
// We recommend adjusting this value in production.
5553
options.TracesSampleRate = 1.0;
5654

@@ -79,7 +77,7 @@ Do not initialize the SDK in the `OnLaunched` event of the application or the `H
7977
</Alert>
8078

8179

82-
```csharp
80+
```csharp {"onboardingOptions": {"performance": "18-21"}}
8381
// Add these to your existing using statements.
8482
using Sentry.Protocol;
8583
using UnhandledExceptionEventArgs = Microsoft.UI.Xaml.UnhandledExceptionEventArgs;
@@ -97,7 +95,7 @@ sealed partial class App : Application
9795
// When configuring for the first time, to see what the SDK is doing:
9896
o.Debug = true;
9997

100-
// Set traces_sample_rate to 1.0 to capture 100% of transactions for tracing.
98+
// Set TracesSampleRate to 1.0 to capture 100% of transactions for tracing.
10199
// We recommend adjusting this value in production.
102100
o.TracesSampleRate = 1.0;
103101

docs/platforms/dotnet/guides/xamarin/index.mdx

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,27 @@ The SDK is compatible with the following versions or higher:
2121

2222
After you’ve completed setting up a project in Sentry, Sentry will give you a value which we call a DSN or Data Source Name. It looks a lot like a standard URL, but it’s just a representation of the configuration required by the Sentry SDKs. It consists of a few pieces, including the protocol, public key, the server address, and the project identifier.
2323

24-
<PlatformContent includePath="getting-started-config" />
24+
<OnboardingOptionButtons options={['error-monitoring', 'performance']}/>
25+
26+
You should initialize the SDK as early as possible, for an example, the start of OnCreate
27+
on MainActivity for Android, and, the top of FinishedLaunching on AppDelegate for iOS).
28+
29+
```csharp {"onboardingOptions": {"performance": "8-11"}}
30+
SentryXamarin.Init(options =>
31+
{
32+
options.AddXamarinFormsIntegration();
33+
// Tells which project in Sentry to send events to:
34+
options.Dsn = "___PUBLIC_DSN___";
35+
// When configuring for the first time, to see what the SDK is doing:
36+
options.Debug = true;
37+
// Set TracesSampleRate to 1.0 to capture 100%
38+
// of transactions for tracing.
39+
// We recommend adjusting this value in production
40+
options.TracesSampleRate = 1.0;
41+
});
42+
// App code
43+
44+
```
2545

2646
## Verify
2747

docs/platforms/dotnet/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Install the **NuGet** package to add the Sentry dependency:
8181
To capture all errors, even the one during the startup of your application, you should initialize the Sentry .NET SDK as soon as possible.
8282

8383

84-
```csharp {"onboardingOptions": {"performance": "6-7", "profiling": "8-9"}}
84+
```csharp {"onboardingOptions": {"performance": "5-6", "profiling": "7-8"}}
8585
SentrySdk.Init(options =>
8686
{
8787
options.Dsn = "https://[email protected]/5428537";

0 commit comments

Comments
 (0)