question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: is there much difference/lacking features of the Serilog.Sentry library (vs main Sentry SDK)?

See original GitHub issue

G’Day 👋🏻 !

With the Sentry.Serilog library, is there much features missing … versus using the main Sentry library?

Context: I prefer to pass ILogger<T> all around my application. In my ConfigureServices, I would prefer to just setup Serilog and then log whatever to wherever, via sinks, like Sentry.Serilog.

So if I get an error, I would then log that to Sentry.

Is it safe to assume that the data which is logged to sentry via the Serilog sink is pretty much feature rich as manually using the Serilog library? Like, rich exception information, etc?

Or in other words, if I use the Sentry.Serilog library, I would be missing out of the following pieces of data:

  • <something>
  • <another thing>
  • etc.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
PureKromecommented, Dec 1, 2020

Great - created an issue (in preparation for a PR) to test this stuff out, etc.

0reactions
bruno-garciacommented, Dec 1, 2020

Sentry.AspNetCore has appsettngs.json support for default tags. This is missing from Serilog.Sinks.Sentry. A PR to accept this would be considered.

We could move default tags to SentryOptions so all integrations could leverage.

MS Logger supports BeginScope and Sentry (2.1.8+) respects this. So if we use MS Logger + BeginScope + Sentry, we should see the scoped data in Sentry.

It always had it, but before 2.1.8, on ASP.NET Core (with the scope locked) it didn’t keep the values. See #594

Because Sentry respect the MS Logger scopes, by inheritance, the Serilog.Sinks.Sentry nuget library should also handle MS Logger + Scopes.

Serilog does some funny stuff with ASP.NET Core with regards to logging backend. I see the Sink itself adds some Serilog properties stuff as Extra: https://github.com/getsentry/sentry-dotnet/blob/e17703a77a4a5f20b44f233ecfa4e937d42542f8/src/Sentry.Serilog/SentrySink.cs#L109

I suggest trying stuff out though.

Read more comments on GitHub >

github_iconTop Results From Across the Web

is there much difference/lacking features of the Serilog. ...
Question : is there much difference/lacking features of the Serilog.Sentry library (vs main Sentry SDK)?
Read more >
Serilog | Sentry Documentation
This package extends Sentry main SDK. That means that besides the logging related features, through this package you'll also get access to all...
Read more >
Sentry vs Serilog | LibHunt - Awesome .NET
A no-nonsense logging library for the NoSQL era. Combines the best of traditional and structured diagnostic logging in an easy-to-use package.
Read more >
Serilog Sentry "global" breadcrumbs in .NET C# windows ...
Breadcrumbs track things that happened, such as "window opened" or "button clicked". They are useful to produce a timeline of activity ...
Read more >
Sentry.Serilog 3.35.1
Official Serilog integration for Sentry - Open-source error tracking that helps developers monitor and fix crashes in real time.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found