Skip to content

Question, maybe a bug about sentry, serilog and setting dsn #2225

Answered by mattjohnsonpint
jorisrfh asked this question in Q&A
Discussion options

You must be logged in to vote

The DSN needs to be set the first time that Sentry is initialized. For an ASP.NET Core app, that is when UseSentry is called from the web builder in program.cs. You can instead use appsettings.json if you like, but the DSN needs to be part of the Sentry configuration section, not the Sentry subsection of Serilog. See: #1800 (comment)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mattjohnsonpint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants