Skip to content

LogCritical with exception instance has no detail about the exception #4822

@bruno-garcia

Description

@bruno-garcia

Logs: https://nugettrends.sentry.io/explore/logs/?logsFields=timestamp&logsFields=message&logsSortBys=-timestamp&mode=samples&project=1266316&project=1266317&statsPeriod=1h

Package

Sentry

.NET Flavor

.NET

.NET Version

10.0.1

OS

Linux

OS Version

No response

Development Environment

Other

SDK Version

6.0.0

Self-Hosted Sentry Version

No response

Workload Versions

I see only the message, but I also capture the Exception instance:

https://github.com/dotnet/nuget-trends/blob/49e4745082fa4367b9ab121850f57cfc465f8a40/src/NuGetTrends.Scheduler/DailyDownloadWorker.cs#L200

Why could that be? Shouldn't there be at least the exception message if not the full stack trace?
Image

I tried looking at the trace and I don't see anything linked to it, not even other logs which is odd:

Image

UseSentry or SentrySdk.Init call

https://github.com/dotnet/nuget-trends/blob/49e4745082fa4367b9ab121850f57cfc465f8a40/src/NuGetTrends.Scheduler/Program.cs#L59-L80

Steps to Reproduce

logging a failure as described

Expected Result

find out what's the exceptiion about

Actual Result

as described

Also: This template for ticket is painfully long. Are folks filing out everything? Note that the "Dev IDE one has Visual Studio selecte by default so those that don't bother changing will misreport it. Consider having another default

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETPull requests that update .net codeBugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions