Skip to content

Commit

Permalink
Changing Sentry init options.
Browse files Browse the repository at this point in the history
  • Loading branch information
renemadsen committed Oct 20, 2024
1 parent 2dc85e1 commit 7532024
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions ServiceItemsPlanningPlugin/Core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,29 +128,16 @@ public bool Start(string sdkConnectionString, string serviceLocation)
// This might be helpful, or might interfere with the normal operation of your application.
// We enable it here for demonstration purposes when first trying Sentry.
// You shouldn't do this in your applications unless you're troubleshooting issues with Sentry.
options.Debug = true;
options.Debug = false;
// This option is recommended. It enables Sentry's "Release Health" feature.
options.AutoSessionTracking = true;
// Set TracesSampleRate to 1.0 to capture 100%
// of transactions for tracing.
// We recommend adjusting this value in production.
options.TracesSampleRate = 1.0;
// Sample rate for profiling, applied on top of othe TracesSampleRate,
// e.g. 0.2 means we want to profile 20 % of the captured transactions.
// We recommend adjusting this value in production.
options.ProfilesSampleRate = 1.0;
// Requires NuGet package: Sentry.Profiling
// Note: By default, the profiler is initialized asynchronously. This can
// be tuned by passing a desired initialization timeout to the constructor.
// options.AddIntegration(new ProfilingIntegration(
// // During startup, wait up to 500ms to profile the app startup code.
// // This could make launching the app a bit slower so comment it out if you
// // prefer profiling to start asynchronously
// TimeSpan.FromMilliseconds(500)
// ));
// Enabling this option is recommended for client applications only. It ensures all threads use the same global scope.
options.IsGlobalModeEnabled = false;
// Example sample rate for your transactions: captures 10% of transactions
options.TracesSampleRate = 0.1;
});
Console.WriteLine("ServiceItemsPlanningPlugin start called");
try
Expand Down

0 comments on commit 7532024

Please sign in to comment.