Skip to content

Commit 31744ea

Browse files
committed
logs on the cli
1 parent ef8d444 commit 31744ea

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/SymbolCollector.Console/Program.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,11 @@ private static void Bootstrap(Args args)
219219
o.Debug = true;
220220
o.IsGlobalModeEnabled = true;
221221
o.CaptureFailedRequests = true;
222+
223+
#pragma warning disable SENTRY0001
224+
o.Experimental.EnableLogs = true;
225+
#pragma warning restore SENTRY0001
226+
222227
#if DEBUG
223228
o.Environment = "development";
224229
#else
@@ -231,9 +236,7 @@ private static void Bootstrap(Args args)
231236
o.TracesSampleRate = 1.0;
232237
o.ProfilesSampleRate = 1.0;
233238

234-
o.AddIntegration(new ProfilingIntegration(
235-
// Block up to 2 seconds to get profiling started before running the app
236-
TimeSpan.FromSeconds(2)));
239+
o.AddProfilingIntegration(TimeSpan.FromSeconds(2));
237240

238241
o.AddExceptionFilterForType<OperationCanceledException>();
239242
});

0 commit comments

Comments
 (0)