Add missing sentry error backtrace

Clear traces spam
This commit is contained in:
2026-06-16 18:49:35 +00:00
parent 00d46ce968
commit 975581093a
5 changed files with 18 additions and 9 deletions
+7 -2
View File
@@ -97,9 +97,14 @@ impl Bot {
Ok(())
}
#[instrument(skip(self))]
#[instrument(skip(self), fields(repo, pr))]
pub async fn exec(&self, webhook: WebhookType) {
tracing::Span::current().record("webhook_type", tracing::field::debug(&webhook));
match &webhook {
WebhookType::Review(p) => {
tracing::Span::current().record("repo", &p.repository.full_name);
tracing::Span::current().record("pr", p.pull_request.number);
}
}
let exec_result = match webhook {
WebhookType::Review(review_payload) => crate::bot_actions::review::exec_review(
&self.gitea_api,