-
Notifications
You must be signed in to change notification settings - Fork 287
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
Exception messages are not logged when the message exceed max length #2284
Comments
I also hit a similar issue when there are AggregateExceptions with long inner exception messages or a lot of inner exceptions, the exceptions are not logged in appinsights. Looks like both might have the same cause. Package versions:
Below is a simple repro with a Azure function. In the catch block, the trace is logged with the AggregateException but I don’t see any exceptions being logged. Would be great to have a fix or a workaround for this.
Thanks! |
Any update on this, can we prioritize? This seems critical for troubleshooting and should be covered in the SDK without having manual code to work around this? |
related: #2482 |
This is an issue for us as well. The only way we can work around it is with reflection. |
This issue is stale because it has been open 300 days with no activity. Remove stale label or this will be closed in 7 days. Commenting will instruct the bot to automatically remove the label. |
Hi all,
We are observing an issue with logging of exceptions in ApplicationInsights, when the message length is > 32K limit.
My expectation is if the messages are greater than the limit, they should be truncated by the sdk and logged to appinsights. However, I don't see that happening. Instead I don't see an exception logged in appinsights. I do see a trace logged though.
Is this a known issue?
For now, the workaround I am using is to create a ExceptionTelemetry object with truncated message and call
TrackException(ExceptionTelemetry exceptionTelemetry)
I did notice, there is a Sanitize method for ExceptionTelemetry. Not sure if it is called.
The text was updated successfully, but these errors were encountered: