fleet/server/contexts/ctxerr
Roberto Dip b2d07e56b5
report error analytics (#6341)
Related to #5898, this reports an anonymized summary of errors stored in Redis into the analytics payload.

For each error stored, this includes:

- A `count` attribute with the number of occurrences of the error
- A `loc` attribute with the 3 topmost lines in the stack trace. Note that stack traces only contain package name + line number (example: github.com/fleetdm/fleet/server.go:12

This also includes a minor refactor around error types.
2022-06-28 16:31:14 -03:00
..
ctxerr_test.go report error analytics (#6341) 2022-06-28 16:31:14 -03:00
ctxerr.go report error analytics (#6341) 2022-06-28 16:31:14 -03:00
stack_test.go implement a thin wrapper around stdlib errors (#5733) 2022-05-18 11:47:55 -03:00
stack.go implement a thin wrapper around stdlib errors (#5733) 2022-05-18 11:47:55 -03:00
statistics_test.go report error analytics (#6341) 2022-06-28 16:31:14 -03:00
statistics.go report error analytics (#6341) 2022-06-28 16:31:14 -03:00