sentry-cocoa
sentry-cocoa copied to clipboard
Create more logs for automatic transactions
Description
We need more debug log for automatic transactions such as UIVIewController life cycle, network request, IO and Core Data.
This will help us during customer support. We need to know when a automatic transaction started, ended and what other automatic spans were created in between.
Network request, IO and Core Data spans relies on some transaction being bound to the scope, we might add a log saying that those were not created because there is no transaction in the scope. But Im afraid this could be very verbose.
But Im afraid this could be very verbose.
SDKs like Flutter, .NET and Android/Java have DiagnosticLevel
diagnosticLevel
Enabling debug mode makes the SDK generate as much diagnostic data as possible. However, if you'd prefer to lower the > verbosity of the Sentry SDK diagnostics logs, configure this option to set the appropriate level:debug: default The most verbose mode info: Informational messages warning: Warning that something might not be right error: Only SDK internal errors are printed fatal: Only critical errors are printed
In .NET you can even swap out the Sentry SDK diagnostic logger, to print to a file or other place (like the Unity console), for example: https://docs.sentry.io/platforms/dotnet/configuration/diagnostic-logger/
Cocoa has diagnosticLevel, but the default is already debug.
Cocoa has diagnosticLevel, but the default is already debug.
That's OK, but users can raise the level to warn if debug
is too spammy. But for us to get logs from them to debug issues, we can get the default, verbose level.