2
0
ianedwards 2 жил өмнө
parent
commit
e62421e4bf

+ 2 - 0
api/server/handlers/webhook/app_v2_github.go

@@ -120,6 +120,8 @@ func (c *GithubWebhookHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
 
 
 	switch event := event.(type) {
 	switch event := event.(type) {
 	case *github.PullRequestEvent:
 	case *github.PullRequestEvent:
+		telemetry.WithAttributes(span, telemetry.AttributeKV{Key: "pr-action-type", Value: event.GetAction()})
+
 		if event.GetAction() != GithubPRStatus_Closed {
 		if event.GetAction() != GithubPRStatus_Closed {
 			telemetry.WithAttributes(span, telemetry.AttributeKV{Key: "event-processed", Value: false})
 			telemetry.WithAttributes(span, telemetry.AttributeKV{Key: "event-processed", Value: false})
 			c.WriteResult(w, r, nil)
 			c.WriteResult(w, r, nil)