Skip to content

Commit 99935b1

Browse files
committed
Skip algorithm for collector.newrelic.com
1 parent 17779a8 commit 99935b1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

aikido_zen/sinks/socket.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,17 @@
77
from aikido_zen.sinks import on_import, patch_function, after
88
from aikido_zen.vulnerabilities import run_vulnerability_scan
99

10+
PERF_SKIP_HOSTS = ["collector.newrelic.com"]
11+
1012

1113
@after
1214
def _getaddrinfo(func, instance, args, kwargs, return_value):
1315
host = get_argument(args, kwargs, 0, "host")
1416
port = get_argument(args, kwargs, 1, "port")
1517

18+
if host in PERF_SKIP_HOSTS:
19+
return
20+
1621
op = "socket.getaddrinfo"
1722
register_call(op, "outgoing_http_op")
1823

0 commit comments

Comments
 (0)