Another trace clear
This commit is contained in:
+3
-2
@@ -97,14 +97,15 @@ impl Bot {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
#[instrument(skip(self), fields(repo, pr))]
|
#[instrument(skip(self, webhook), fields(repo, pr))]
|
||||||
pub async fn exec(&self, webhook: WebhookType) {
|
pub async fn exec(&self, webhook: WebhookType) {
|
||||||
match &webhook {
|
match &webhook {
|
||||||
WebhookType::Review(p) => {
|
WebhookType::Review(p) => {
|
||||||
tracing::Span::current().record("repo", &p.repository.full_name);
|
tracing::Span::current().record("repo", &p.repository.full_name);
|
||||||
tracing::Span::current().record("pr", p.pull_request.number);
|
tracing::Span::current().record("pr", p.pull_request.number);
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
let exec_result = match webhook {
|
let exec_result = match webhook {
|
||||||
WebhookType::Review(review_payload) => crate::bot_actions::review::exec_review(
|
WebhookType::Review(review_payload) => crate::bot_actions::review::exec_review(
|
||||||
&self.gitea_api,
|
&self.gitea_api,
|
||||||
|
|||||||
Reference in New Issue
Block a user