Skip to content

Commit 14c3a64

Browse files
billyvgclaude
andcommitted
ref(seer): Replace metrics.incr with logger.info for contributor seat tracking
The should_create increment in track_contributor_seat was emitting a statsd metric. Switch to structured logging so the event is captured in Sentry's log pipeline alongside the adjacent warning log calls. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 8a8d0cf commit 14c3a64

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/sentry/seer/code_review/contributor_seats.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
from sentry.models.repositorysettings import RepositorySettings
2525
from sentry.seer.autofix.constants import AutofixAutomationTuningSettings
2626
from sentry.tasks.organization_contributors import assign_seat_to_organization_contributor
27-
from sentry.utils import metrics
2827

2928
logger = logging.getLogger(__name__)
3029

@@ -121,10 +120,9 @@ def track_contributor_seat(
121120
if not should_increment_contributor_seat(organization, repo, contributor):
122121
return
123122

124-
metrics.incr(
123+
logger.info(
125124
"scm.webhook.organization_contributor.should_create",
126-
sample_rate=1.0,
127-
tags={"provider": provider},
125+
extra={"provider": provider},
128126
)
129127

130128
locked_contributor = None

0 commit comments

Comments
 (0)