Skip to content

Commit 4efedb3

Browse files
authored
remove some redundant using (#5262)
1 parent ccaabf1 commit 4efedb3

File tree

12 files changed

+0
-37
lines changed

12 files changed

+0
-37
lines changed

src/includes/configuration/auto-session-tracking/dotnet.mdx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,11 @@ We mark the session as:
77
To enable sending sessions, set the `AutoSessionTracking` flag to `true`. When enabled, the .NET SDK is creating a session on application startup and ending it on shut down.
88

99
```csharp {tabTitle:C#}
10-
using Sentry;
11-
1210
// Add this to the SDK initialization callback
1311
options.AutoSessionTracking = true; // default: false
1412
```
1513

1614
```fsharp {tabTitle:F#}
17-
open Sentry
18-
1915
// Add this to the SDK initialization callback
2016
options.AutoSessionTracking <- true // default: false
2117
```

src/includes/configuration/auto-session-tracking/unity.mdx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
Sentry SDK subscribes to `OnApplicationPause` and `OnApplicationFocus` events to track if the application has focus or if it has been put in the background. On resume within `AutoSessionTrackingInterval` the session will be continued. The default value is `30 seconds`. Otherwise, the previous session will be ended and we create a new one.
44

55
```csharp {tabTitle:C#}
6-
using System;
7-
using Sentry;
8-
96
// Add this to the SDK initialization callback
107
options.AutoSessionTrackingInterval = TimeSpan.FromSeconds(30);
118
```

src/includes/performance/automatic-instrumentation-integrations/dotnet.mdx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,13 @@ Starting with version 3.9.0, the SDK automatically integrates with Entity Framew
99
If you don't want to have this integration, you can disable it on `SentryOptions` by calling `DisableDiagnosticSourceIntegration();`
1010

1111
```csharp
12-
using Sentry;
13-
1412
option.DisableDiagnosticSourceIntegration();
1513
```
1614

1715
If your project doesn't match any of the conditions above, (for example, it targets .NET Framework 4.6.1 and uses only the `Sentry` package), you can still manually activate those instrumentations by including the package `Sentry.DiagnosticSource` and enabling it during on the SDK's initialization.
1816

1917
```csharp
2018
// Requires NuGet package: Sentry.DiagnosticSource
21-
using Sentry;
22-
2319
option.AddDiagnosticSourceIntegration();
2420
```
2521

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
```csharp
2-
using Sentry;
3-
42
// Add this to the SDK initialization callback
53
options.TracesSampleRate = 0.2;
64
```
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
```csharp
2-
using Sentry;
3-
42
// Add this to the SDK initialization callback
53
options.Environment = "production";
64
```
75

86
```fsharp
9-
open Sentry
10-
117
// Add this to the SDK initialization callback
128
options.Environment <- "production"
139
```

src/includes/set-environment/dotnet.nlog.mdx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,11 @@ For more information on how to dynamically set event data via `NLog.config`, see
2929
```
3030

3131
```csharp
32-
using Sentry;
33-
3432
// Add this to the SDK initialization callback
3533
options.Environment = "production";
3634
```
3735

3836
```fsharp
39-
open Sentry
40-
4137
// Add this to the SDK initialization callback
4238
options.Environment <- "production"
4339
```

src/includes/set-release/dotnet.mdx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
```csharp {tabTitle:C#}
2-
using Sentry;
3-
42
// Add this to the SDK initialization callback
53
options.Release = "my-project-name@2.3.12";
64
```
75

86
```fsharp {tabTitle:F#}
9-
open Sentry
10-
117
// Add this to the SDK initialization callback
128
options.Release <- "my-project-name@2.3.12"
139
```

src/includes/set-release/dotnet.nlog.mdx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,11 @@ For more information on how to dynamically set event data via `NLog.config`, see
2828
```
2929

3030
```csharp
31-
using Sentry;
32-
3331
// Add this to the SDK initialization callback
3432
options.Release = "my-project-name@2.3.12";
3533
```
3634

3735
```fsharp
38-
open Sentry
39-
4036
// Add this to the SDK initialization callback
4137
options.Release <- "my-project-name@2.3.12"
4238
```

src/platforms/dotnet/common/configuration/disable-integrations.mdx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,11 @@ All of Sentry’s SDKs provide integrations, which extend functionality of the S
99
To disable an integration, for example, the automatic capture of unhandled exceptions:
1010

1111
```csharp
12-
using Sentry;
13-
1412
// Add it to your Sentry SDK initialization block:
1513
options.DisableAppDomainUnhandledExceptionCapture()
1614
```
1715

1816
```fsharp
19-
open Sentry
20-
2117
// Add it to your Sentry SDK initialization block:
2218
options.DisableAppDomainUnhandledExceptionCapture()
2319
```

src/platforms/dotnet/guides/aspnetcore/builtin-sampling-context.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ You can sample transactions by providing a delegate that makes a decision based
88
For example, here's how to sample a transaction based on the requested path:
99

1010
```csharp
11-
using Sentry;
12-
1311
// Add this to the SDK initialization callback
1412
options.TracesSampler = context =>
1513
{

0 commit comments

Comments
 (0)