Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/sentry/integrations/utils/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from typing import Any, Self

import sentry_sdk
from django.conf import settings

from sentry import options
from sentry.exceptions import RestrictedIPAddress
Expand Down Expand Up @@ -167,6 +168,7 @@ def record_event(

sample_rate = 1.0
metrics.incr(key, tags=tags, sample_rate=sample_rate)
sentry_sdk.metrics.count(f"{settings.SENTRY_METRICS_PREFIX}{key}", 1, attributes=dict(tags))

sentry_sdk.set_tags(tags)

Expand Down
Loading