Skip to content

Commit 7c00178

Browse files
authored
chore(detectors): Add google API filtering for Consecutive HTTP detector (#94634)
this pr updates the eligible span method to look for `googleapis.com` in the description. one example of this would be their ai platform which has `aiplatform.googleapis.com` in the description.
1 parent 7fa5d73 commit 7c00178

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sentry/performance_issues/detectors/consecutive_http_detector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def _is_eligible_http_span(self, span: Span) -> bool:
160160
): # Just using all methods to see if anything interesting pops up
161161
return False
162162

163-
if any([x in description for x in ["_next/static/", "_next/data/"]]):
163+
if any([x in description for x in ["_next/static/", "_next/data/", "googleapis.com"]]):
164164
return False
165165

166166
return True

0 commit comments

Comments
 (0)