Skip to content

Commit 830b3a2

Browse files
authored
fix(sample): dotnet sample (#2930)
1 parent 925dafd commit 830b3a2

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
```csharp
2+
using Sentry;
3+
4+
using (SentrySdk.Init(o =>
5+
{
6+
o.SampleRate = 0.25; // Capture 25%
7+
})
8+
{
9+
// app code here
10+
}
11+
```
12+
13+
```fsharp
14+
open Sentry
15+
16+
use __ = SentrySdk.Init(fun o ->
17+
o.SampleRate <- 0.25 // Capture 25%
18+
())
19+
20+
// app code here
21+
```

0 commit comments

Comments
 (0)