Skip to content

Commit

Permalink
Updating Sentry to latests initialization style.
Browse files Browse the repository at this point in the history
  • Loading branch information
renemadsen committed Oct 20, 2024
1 parent 634578f commit aaf0689
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions ServiceItemsPlanningPlugin/Core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,17 +128,29 @@ 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 = false;
options.Debug = true;
// This option is recommended. It enables Sentry's "Release Health" feature.
options.AutoSessionTracking = true;
// This option is recommended for client applications only. It ensures all threads use the same global scope.
// If you're writing a background service of any kind, you should remove this.
options.IsGlobalModeEnabled = false;
// This option will enable Sentry's tracing features. You still need to start transactions and spans.
options.EnableTracing = 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)
// ));
});
Console.WriteLine("ServiceItemsPlanningPlugin start called");
try
Expand Down

0 comments on commit aaf0689

Please sign in to comment.