Filter messages sent to Sentry

We currently have a lot of "unique" errors in Sentry. Many of them are the same error, just with a slight variation of the message. This is noise that doesn't allow to see the big picture clearly.

We should remove the following things from messages before sending them to Sentry:

  • IPv4/IPv6 addresses with and without ports
  • ...?

Place in code to filter messages: https://gitlab.com/gitlab-org/cluster-integration/gitlab-agent/-/blob/231336d3284bdc351da48e864f6322d99e13e119/cmd/kas/kasapp/api.go#L58-58

Edited by Mikhail Mazurskiy