Skip to content

Commit

Permalink
chore: add a debug log to investigate check runs (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
Elfo404 authored Nov 6, 2024
1 parent 74a0e4d commit 9beeb5c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion receiver/githubactionsreceiver/metric_event_handling.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ func (m *metricsHandler) eventToMetrics(event *github.WorkflowJobEvent) pmetric.
return m.mb.Emit()
}

if event.GetWorkflowJob().GetName() == "eslint" && event.GetRepo().GetFullName() == "grafana/deployment_tools" {
m.logger.Info("CHECK OUT THIS", zap.Any("event", event))
}

repo := event.GetRepo().GetFullName()

labels := ""
Expand All @@ -63,7 +67,7 @@ func (m *metricsHandler) eventToMetrics(event *github.WorkflowJobEvent) pmetric.
curVal, found := loadFromCache(repo, labels, status)

// If the value was not found in the cache, we record a 0 value for all other possible statuses
// so that counter resets are properly handled.
// so that all counters for a given labels combination are always present and reset at the same time.
if !found {
for _, s := range metadata.MapAttributeCiGithubWorkflowJobStatus {
if s == status {
Expand Down

0 comments on commit 9beeb5c

Please sign in to comment.