Set current project/group in WebHookWorker context [RUN AS-IF-FOSS]

What does this MR do?

Currently this isn't always reliably detected, depending on how the worker is triggered.

By setting this explicitly we always see the related project and namespace in Kibana, and also the subscription plan in EE.

This also sets the related_class field to the webhook type, which is useful for troubleshooting purposes.

Part of #330133 (closed), this will help with determining suitable thresholds for webhook rate-limiting.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Markus Koller

Merge request reports

Loading