-
Notifications
You must be signed in to change notification settings - Fork 199
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
Improve error messages for network connectivity and memory issue #1483
Conversation
...ava/com/microsoft/applicationinsights/internal/channel/common/TransmissionNetworkOutput.java
Show resolved
Hide resolved
...m/microsoft/applicationinsights/internal/channel/common/ActiveTransmissionNetworkOutput.java
Outdated
Show resolved
Hide resolved
.../src/main/java/com/microsoft/applicationinsights/internal/util/NetworkExceptionsTracker.java
Outdated
Show resolved
Hide resolved
...ava/com/microsoft/applicationinsights/internal/channel/common/TransmissionNetworkOutput.java
Outdated
Show resolved
Hide resolved
...ava/com/microsoft/applicationinsights/internal/channel/common/TransmissionNetworkOutput.java
Outdated
Show resolved
Hide resolved
...m/microsoft/applicationinsights/internal/channel/common/ActiveTransmissionNetworkOutput.java
Outdated
Show resolved
Hide resolved
...ava/com/microsoft/applicationinsights/internal/channel/common/TransmissionNetworkOutput.java
Outdated
Show resolved
Hide resolved
…ed on every exception
.../test/java/com/microsoft/applicationinsights/internal/util/NetworkExceptionsTrackerTest.java
Outdated
Show resolved
Hide resolved
...src/main/java/com/microsoft/applicationinsights/internal/util/TemporaryExceptionWrapper.java
Outdated
Show resolved
Hide resolved
...src/main/java/com/microsoft/applicationinsights/internal/util/TemporaryExceptionWrapper.java
Outdated
Show resolved
Hide resolved
...src/main/java/com/microsoft/applicationinsights/internal/util/TemporaryExceptionWrapper.java
Outdated
Show resolved
Hide resolved
...src/main/java/com/microsoft/applicationinsights/internal/util/TemporaryExceptionWrapper.java
Outdated
Show resolved
Hide resolved
...src/main/java/com/microsoft/applicationinsights/internal/util/TemporaryExceptionWrapper.java
Outdated
Show resolved
Hide resolved
.../test/java/com/microsoft/applicationinsights/internal/util/NetworkExceptionsTrackerTest.java
Outdated
Show resolved
Hide resolved
.../src/main/java/com/microsoft/applicationinsights/internal/util/NetworkExceptionsTracker.java
Outdated
Show resolved
Hide resolved
@kryalama instead of screenshot, can you paste the text? I'd like to see the left hand side (timestamps) and the right hand side (to see what's different that's causing those lines to have difference messages) |
Its because of the number of bytes in those messages. And also the first group is from Network exceptions and second group is from DIsk Exceptions.
|
let's change the error message so it has low cardinality, e.g.
(where |
Sample output after latest changes:
|
.../com/microsoft/applicationinsights/internal/channel/common/TransmissionFileSystemOutput.java
Outdated
Show resolved
Hide resolved
message.append(" times (out of "); | ||
message.append(total); | ||
message.append(" total):\n"); | ||
message.append(introMessage); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding introMessage again is adding too much clutter I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's good context, but I shortened the intro significantly to make the messages less clutterful
this message isn't part of storing telemetry to disk (it's part of reading from disk and I don't think a spam problem), so I removed it from
|
Looks good to me
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Algorithm:
have a timer, every 5 minutes, if any failures, log number of failed requests and successful requests in last 5 min.