-
-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sentry Serilog not creating issues in Sentry #1800
Comments
Thanks for the bug report. We'll see if we can reproduce your results and get back to you asap. Thanks. |
FWIW, the log you gave here is showing the error event being sent successfully. It should have appeared in Sentry. |
Do we have an update here @mattjohnsonpint? Thanks! |
I was unable to find any bug that I could reproduce, however I think I can explain the situation. @koffisani - It looks like you are using Sentry with Serilog in ASP.NET Core, and doing all of your configuration in {
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*",
"Serilog": {
"MinimumLevel": "Information",
"Override": {
"Microsoft.AspNetCore": "Information"
},
"WriteTo": [
{
"Name": "Console"
},
{
"Name": "Sentry",
"Args": {
"MinimumBreadcrumbLevel": "Debug",
"MinimumEventLevel": "Warning"
}
}
]
},
"Sentry": {
"Dsn": "<Your DSN>",
"AttachStackTrace": true,
"Debug": true,
"MaxRequestBodySize": "always",
"DiagnosticsLevel": "Info"
}
} Please give that a try and let me know if it works or not. Note, that we've seen this before with #1223 and #1137. Ultimately we need to update our docs and samples to resolve this. |
Thank you @mattjohnsonpint for your support. In case it's usefull, I'm using BlazorHero's Clean Architecture template. I've changed my server's appsettings.json file as per your comment, but I can not any issue created in Sentry. I can realise that there's no more debug info concerning Sentry. |
Without going into to much detail and hijacking I can confirm I am having a very similar issue with .net6/sentry/serilog. Tried setting this up at work for a few hours the other day the .net 6 way until I found this open issue. |
@ReneGreen27 @koffisani @williycole i had a go a reproducing this https://github.com/SimonCropp/SentryAspCoreSerilogRepro/tree/UsingAppConfig and it correctly logs an issue to Sentry perhaps one of you could help me modify that sample in a way that causes the issue? Note you will need to change the DSN in config if you want to experiment locally |
@ReneGreen27 @koffisani @williycole gentle nudge |
Thank you, @SimonCropp for your support. I just reproduce your code here locally. And everytime I refresh the web page, I get this in my docker logs :
and in the log, I can see this
Hope this helps identify my issue. |
Thanks for looking into this @SimonCropp. I had to punt this issue at work for a later date. Didn't want to hijack the thread but I can add a bit more clarity to my issue until I can get back around to this one. My issue is not "Sentry Serilog not creating issues in Sentry". I was able follow sentry docs and get logs working but only for production env. I set up general appsettings, appsettings.Development.json, appsettings.Production.json etc..., |
There've been changes and updates to our Serilog integration, specifically with the way the integration can initialize the SDK. Please feel free to reply or reopen this issue if it persists for you in the current version of the SDK. |
Package
Sentry.Serilog
.NET Flavor
.NET Core
.NET Version
6.0.203
OS
Windows
SDK Version
3.19.0
Self-Hosted Sentry Version
21.8.0
Steps to Reproduce
Configure appsettings.json to work with Serilog
Create test event in code
Expected Result
I expect an issue to be created in Sentry
Actual Result
Unfortunately, in the logs, i get this :
The text was updated successfully, but these errors were encountered: