Hello,
I have a simple WPF desktop application (.NET 8) and I'm using Sentry.Profiling, which I initialize like this:
SentrySdk.Init(opts =>
{
opts.Dsn = "<redacted>";
opts.AutoSessionTracking = true;
opts.IsGlobalModeEnabled = true;
opts.StackTraceMode = StackTraceMode.Enhanced;
opts.Debug = true;
opts.TracesSampleRate = 1.0;
opts.AddProfilingIntegration(new TimeSpan(1000));
opts.ProfilesSampleRate = 1.0;
opts.SendDefaultPii = true;
});
However after I run my app and use it for a bit (loading some data, etc), I never see any profiling data on the app.
I can manually capture messages and transactions (e.g. SentrySdk.StartTransaction) and this works fine, but ideally I'm trying to capture metrics on all methods without having to manually setup transactions on everything.
I'm not sure if this is an issue with my setup, or a fundamental misunderstanding of how this is meant to work?
EDIT:
I've got back to as simple as possible with:
SentrySdk.Init(opts =>
{
opts.Dsn = "<redacted>";
opts.Debug = true;
opts.DiagnosticLogger = new TraceDiagnosticLogger(SentryLevel.Debug);
opts.IsGlobalModeEnabled = true;
opts.AddProfilingIntegration();
});
And I'm seeing the following in the debug output:
Debug: Registering integration: 'ProfilingIntegration'.
Info: Profiling Integration is disabled because profiling is disabled by configuration.```
What configuration is this referring to? How do I change it so that it enables profiling?