File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
docs/platforms/dotnet/guides/azure-functions-worker Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -33,14 +33,31 @@ This package extends [Sentry.Extensions.Logging](/platforms/dotnet/guides/extens
3333
3434Sentry integration with Azure Functions is done by calling ` .UseSentry() ` and specifying the options, for example:
3535
36+ ``` csharp {"onboardingOptions": {"performance": "11-13"}}
37+ using Sentry .Azure .Functions .Worker ;
38+
39+ var builder = FunctionsApplication .CreateBuilder (args );
40+
41+ builder .UseSentry (options =>
42+ {
43+ options .Dsn = " ___PUBLIC_DSN___" ;
44+ // When configuring for the first time, to see what the SDK is doing:
45+ options .Debug = true ;
46+ // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring.
47+ // We recommend adjusting this value in production.
48+ options .TracesSampleRate = 1 . 0 ;
49+ });
50+
51+ builder .Build ().Run ();
52+ ```
3653
3754<Alert >
3855
3956If using the ASP.NET Core integration add ` UseSentry ` to the ` ConfigureFunctionsWebApplication ` call instead.
4057
4158</Alert >
4259
43- ``` csharp {"onboardingOptions": {"performance": "11-13"}}
60+ ``` csharp
4461using Sentry .Azure .Functions .Worker ;
4562
4663var host = new HostBuilder ()
You can’t perform that action at this time.
0 commit comments