sentry-dotnet icon indicating copy to clipboard operation
sentry-dotnet copied to clipboard

Serilog properties -> Sentry Tags

Open Vincent-Balungay-EcoOnline opened this issue 1 year ago • 8 comments

Problem Statement

Hi All,

I'm currently using the old Serilog.Sinks.Sentry package. It has this feature, where it allows you to send exceptions to Sentry with a tag that was derived from specified Serilog properties.

new LoggerConfiguration()
.Enrich.WithProperty("DemoId", demoId)
.Enrich.WithCorrelationIdHeader("CorrelationId")
.WriteTo.Sentry("dsn", tags: "DemoId,CorrelationId")

...
// CorrelationIdand DemoId will be logged as tags
_log.Error("Something went wrong {CorrelationId}", correlationId);

But since Serilog.Sinks.Sentry has been depreciated. So I'm now looking to upgrade to Sentry.Serilog, but it seems like there isn't an equivalent feature? or am I missing something?

If there isn't, I don't suppose there are plans to add this feature in the future?

Many Thanks

Solution Brainstorm

No response