-
-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trimming support for NLog (Bump to NLog 5.2.2) #3698
Comments
Alternative you could remove [Target("Sentry")]
public sealed class SentryTarget : TargetWithContext
{
[NLogConfigurationIgnoreProperty]
public SentryNLogOptions Options { get; }
public int ShutdownTimeoutSeconds
{
get => (int)Options.ShutdownTimeout.TotalSeconds;
set => Options.ShutdownTimeout = TimeSpan.FromSeconds(value);
}
} No idea how often <!-- Advanced options can be configured here-->
<options
sendDefaultPii="true"
attachStacktrace="false"
shutdownTimeoutSeconds="5"
debug="false"
>
<!--Advanced options can be specified as attributes or elements-->
<includeEventDataOnBreadcrumbs>true</includeEventDataOnBreadcrumbs>
</options> Right now |
NLog 5.2.2 added trimming support. With growing adoption of MAUI, more and more users are trying to trim their apps.
We need to:
Worth investigating @snakefoot 's comment about the complexity of the
SentryNLogOptions
class. If people are only using the NLog integration then ideally they'd be putting all of their Sentry config in one place, but maybe worth challenging that as it creates additional complexity (like this) elsewhere.Originally posted by @snakefoot in #3680
The text was updated successfully, but these errors were encountered: