Skip to content

Commit ffdfcc8

Browse files
authored
remove imports for dotnet (#11566)
1 parent 54423bd commit ffdfcc8

File tree

56 files changed

+3
-139
lines changed

Some content is hidden

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

56 files changed

+3
-139
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,6 @@ Changed how to initialize Sentry:
398398

399399

400400
```csharp
401-
using Sentry;
402-
403401
// Initialize with DSN
404402
SentrySdk.Init("___PUBLIC_DSN___");
405403

@@ -414,7 +412,6 @@ For ASP.NET (classic) integration, add `Sentry.AspNet` package and initialize it
414412

415413

416414
```csharp
417-
using Sentry;
418415
using Sentry.AspNet;
419416

420417
SentrySdk.Init(o =>

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ First, enable tracing and configure the sample rate for transactions. Set the sa
2222
The two options are meant to be mutually exclusive. If you set both, <PlatformIdentifier name="traces-sampler" /> will take precedence.
2323

2424
```csharp {diff}
25-
using Sentry;
26-
2725
+ // Add this to the SDK initialization callback
2826
+ // Example uniform sample rate: capture 100% of transactions
2927
+ options.TracesSampleRate = 1.0;

docs/platforms/dotnet/common/user-feedback/index.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ User Feedback for **[ASP.NET](/platforms/dotnet/guides/aspnet/user-feedback/#int
1717
You can create a form to collect the user input in your preferred framework, and use the SDK's API to send the information to Sentry. You can also use the widget, as described below. If you'd prefer an alternative to the widget or do not have a JavaScript frontend, you can use this API:
1818

1919
```csharp {tabTitle:C#}
20-
using Sentry;
21-
2220
var eventId = SentrySdk.CaptureMessage("An event that will receive user feedback.");
2321

2422
SentrySdk.CaptureUserFeedback(eventId, "[email protected]", "It broke.", "The User");

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ You configure the SDK in the `Global.asax.cs`:
3737
```csharp {"onboardingOptions": {"performance": "21-24, 34-43"}}
3838
using System;
3939
using System.Web;
40-
using Sentry;
4140
using Sentry.AspNet;
4241
using Sentry.EntityFramework; // If you also installed Sentry.EntityFramework
4342
using Sentry.Extensibility;

docs/platforms/dotnet/guides/aspnet/tracing/included-instrumentation.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ using System;
1818
using System.Configuration;
1919
using System.Web.Mvc;
2020
using System.Web.Routing;
21-
using Sentry;
2221
using Sentry.AspNet;
2322

2423
namespace AspNetMvc
@@ -87,7 +86,6 @@ Transactions created by this integration are automatically added to the current
8786
```csharp
8887
using System;
8988
using System.Web.Mvc;
90-
using Sentry;
9189

9290
public class HomeController : Controller
9391
{

docs/platforms/dotnet/guides/aspnetcore/tracing/instrumentation/automatic-instrumentation.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ Transactions created by this integration are automatically added to the current
3232
```csharp
3333
using Microsoft.AspNetCore.Mvc;
3434
using Microsoft.Extensions.Logging;
35-
using Sentry;
3635

3736
public class HomeController : Controller
3837
{

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ For example, configuring an ASP.NET app with _global.asax_:
4848
```csharp {filename:global.asax} {"onboardingOptions": {"performance": "16-18, 27-36"}}
4949
using System;
5050
using System.Configuration;
51-
using Sentry;
5251
using Sentry.AspNet;
5352

5453
public class MvcApplication : System.Web.HttpApplication

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ The SDK should be initialized in the constructor of your application class (usua
2929

3030

3131
```csharp {"onboardingOptions": {"performance": "18-21"}}
32-
using Sentry;
3332
using Sentry.Protocol;
3433
using UnhandledExceptionEventArgs = Windows.UI.Xaml.UnhandledExceptionEventArgs;
3534

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ A complete example of the recommended startup is as follows:
3333
```csharp {"onboardingOptions": {"performance": "32-35"}}
3434
using System;
3535
using System.Windows.Forms;
36-
using Sentry;
3736

3837
namespace WindowsFormsApp1
3938
{

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ Select which Sentry features you'd like to install in addition to Error Monitori
3535
<OnboardingOptionButtons options={['error-monitoring', 'performance']}/>
3636

3737
```csharp {"onboardingOptions": {"performance": "17-20"}}
38-
using Sentry;
3938
using Sentry.Protocol;
4039

4140
sealed partial class App : Application
@@ -82,7 +81,6 @@ Do not initialize the SDK in the `OnLaunched` event of the application or the `H
8281

8382
```csharp
8483
// Add these to your existing using statements.
85-
using Sentry;
8684
using Sentry.Protocol;
8785
using UnhandledExceptionEventArgs = Microsoft.UI.Xaml.UnhandledExceptionEventArgs;
8886

0 commit comments

Comments
 (0)