Skip to content
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

Exceptions with high line number in the stacktrace are dropped. #2482

Closed
Daniel-Guenter opened this issue Nov 30, 2021 · 1 comment · Fixed by #2497
Closed

Exceptions with high line number in the stacktrace are dropped. #2482

Daniel-Guenter opened this issue Nov 30, 2021 · 1 comment · Fixed by #2497
Labels
Milestone

Comments

@Daniel-Guenter
Copy link
Contributor

It seems like I cannot track an exception that has an unusually high line number in the stack trace. The exception never shows up in the application insights backend. The stack trace may contain this.

{ "level":2, "method":"Data.Entities.General.TransactionLogEntry.set_CustomerIP", "assembly":"Data, Version=2.1.2.0, Culture=neutral, PublicKeyToken=null", "line":16707560 },

Turning on AI debug logging shows this message.

Microsoft.ApplicationInsights.Extensibility.TraceSource Warning: 71 : TransmissionDataLossError. Telemetry items are being lost here as the response code is not in the whitelisted set of retriable codes.TransmissionId: xxxxxxxxx=. Status Code: 400.

A fiddler trace shows this.

image

It looks like if the line on a stack trace is greater that 1000000 the upload will fail. The reason the line numbers are so high is that this code is generated by Postsharp, an AOP library and it uses these numbers for it's own debugger plugin.

I was thinking I could write a processor to sanitize this data, but the data I need to access ExceptionDetails, StackFrame are both internal.

Can this limit be increased, or can the data be sanitized so that exception is not lost?

@Daniel-Guenter
Copy link
Contributor Author

Can we get this linked with the pull request 2497 that fixes this issue?

@TimothyMothra TimothyMothra added this to the 2.21 milestone Dec 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants