-
-
Notifications
You must be signed in to change notification settings - Fork 221
Open
Labels
.NETPull requests that update .net codePull requests that update .net codeBugSomething isn't workingSomething isn't workingLogs
Description
Package
Sentry.AspNetCore
.NET Flavor
.NET
.NET Version
9.0.302
OS
Windows
OS Version
OS Name: Microsoft Windows 11 Pro
OS Version: 10.0.26100 N/A Build 26100
Development Environment
Visual Studio v17.x
SDK Version
5.12.0-alpha.0
Self-Hosted Sentry Version
Sentry 25.6.2
Workload Versions
Installed Workload Id | Manifest Version | Installation Source |
---|---|---|
aspire | 8.2.2/8.0.100 | VS 17.14.36301.6 |
UseSentry or SentrySdk.Init call
"Sentry": {
"SendDefaultPii": true,
"MaxRequestBodySize": "Always",
"MinimumBreadcrumbLevel": "Debug",
"MinimumEventLevel": "Warning",
"AttachStackTrace": true,
"Debug": true,
"DiagnosticLevel": "Error",
"TracesSampleRate": 1.0
},
builder.WebHost.UseSentry(options =>
{
options.Dsn = "***";
#pragma warning disable SENTRY0001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
options.Experimental.EnableLogs = true;
options.ExperimentalLogging.MinimumLogLevel = LogLevel.Debug;
#pragma warning restore SENTRY0001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
options.AddEntityFramework();
});
builder.Logging.AddSentry();
builder.Services.AddSentry();
Steps to Reproduce
- Just start the application
Expected Result
Logs are committed to sentry
Actual Result
Debug: Registering EF Core integration
Error: Template string does not match the provided argument. The Log will be dropped.
System.FormatException: Input string was not in a correct format. Failure to parse near offset 136. Expected an ASCII digit.
at System.Text.ValueStringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ReadOnlySpan`1 args)
at System.String.FormatHelper(IFormatProvider provider, String format, ReadOnlySpan`1 args)
at System.String.Format(IFormatProvider provider, String format, Object[] args)
at Sentry.Internal.DefaultSentryStructuredLogger.CaptureLog(SentryLogLevel level, String template, Object[] parameters, Action`1 configureLog)
fail: Sentry.ISentryClient[0]
Template string does not match the provided argument. The Log will be dropped.
System.FormatException: Input string was not in a correct format. Failure to parse near offset 48. Expected an ASCII digit.
at System.Text.ValueStringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ReadOnlySpan`1 args)
at System.String.FormatHelper(IFormatProvider provider, String format, ReadOnlySpan`1 args)
at System.String.Format(IFormatProvider provider, String format, Object[] args)
at Sentry.Internal.DefaultSentryStructuredLogger.CaptureLog(SentryLogLevel level, String template, Object[] parameters, Action`1 configureLog)
Metadata
Metadata
Assignees
Labels
.NETPull requests that update .net codePull requests that update .net codeBugSomething isn't workingSomething isn't workingLogs
Type
Projects
Status
No status
Status
No status