Skip to content

Change logging sent to Sentry to provide more meaningful information #212

@MatousJobanek

Description

@MatousJobanek

When there is an error (eg. 404 returned from GH) there are two error records sent to Sentry.

  1. One for the actual problem:
    logged here: https://github.com/arquillian/ike-prow-plugins/blob/master/pkg/plugin/test-keeper/event_handler.go#L189
    the related issue in the sentry https://errortracking.prod-preview.openshift.io/openshift_io/ike-prow-plugins/issues/5663/

  2. And as the error is then returned back, then there is the second record sent to the Sentry from this place: https://github.com/arquillian/ike-prow-plugins/blob/master/pkg/plugin/test-keeper/event_handler.go#L44 (but will be from server.go when this PR is merged). However, this record doesn't provide meaningful information - here is an example of such a sentry issue https://errortracking.prod-preview.openshift.io/openshift_io/ike-prow-plugins/issues/5667/

So, change the logging sent to Sentry so the records/issues provide more meaningful information.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions