diff --git a/src/sentry/ingest/consumer/processors.py b/src/sentry/ingest/consumer/processors.py index 621826af990feb..a48ca6d9907d32 100644 --- a/src/sentry/ingest/consumer/processors.py +++ b/src/sentry/ingest/consumer/processors.py @@ -332,8 +332,12 @@ def collect_span_metrics( project: Project, data: MutableMapping[str, Any], ): - if not features.has("organizations:dynamic-sampling", project.organization): - amount = len(data.get("spans", [])) + if not features.has( + "organizations:dynamic-sampling", project.organization + ) and not features.has("organizations:am3_tier", project.organization): + amount = ( + len(data.get("spans", [])) + 1 + ) # Segment spans also get added to the total span count. metrics.incr( "event.save_event.unsampled.spans.count", amount=amount,