Closed
Description
I spent a bunch of time looking for errors from the Azure API, and eventually found them by removing all filters in StackDriver. They were huge blobs of JSON text that StackDriver wouldn't parse as JSON (because they were too long). This appears to be mostly because they include the entire request object in the error body.
It'd be great to fix this in some systematic way -- I can imagine lots of other errors are also too huge to get registered.
Metadata
Metadata
Assignees
Labels
No labels
Activity
djmitche commentedon Apr 21, 2021
STR:
djmitche commentedon May 7, 2021
I'm thinking of just iteratively removing the largest subkey of Fields until the message fits, but I'm not sure what the maximum line length is.
djmitche commentedon May 7, 2021
Ah, it's 256k - https://cloud.google.com/logging/quotas
djmitche commentedon May 7, 2021
I ended up stripping any non-scalar values from error objects. That should get this pretty comprehensively, with minimal collateral damage.