Skip to content

Commit b06a19b

Browse files
authored
Handle new ddtrace writer (#1458)
1.13 changes the location of the URL, let's handle it.
1 parent 427e166 commit b06a19b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/conftest.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,10 @@ def vcr_config():
261261
if tracer:
262262
from urllib.parse import urlparse
263263

264-
config["ignore_hosts"] = [urlparse(tracer._writer.agent_url).hostname]
264+
if hasattr(tracer._writer, "agent_url"):
265+
config["ignore_hosts"] = [urlparse(tracer._writer.agent_url).hostname]
266+
else:
267+
config["ignore_hosts"] = [urlparse(tracer._writer.intake_url).hostname]
265268

266269
return config
267270

0 commit comments

Comments
 (0)