22
33import json
44import os
5+ from pathlib import Path
56
67import pytest
78
@@ -152,7 +153,7 @@ def test_install_runtime_default_flush_timeout_is_shutdown_budget(monkeypatch):
152153 class FakeWildEdge :
153154 SUPPORTED_INTEGRATIONS = {"onnx" }
154155
155- def __init__ (self , * , dsn , app_version , debug ): # type: ignore[no-untyped-def]
156+ def __init__ (self , * , dsn , app_version , debug , sampling_interval_s = None ): # type: ignore[no-untyped-def]
156157 pass
157158
158159 def instrument (self , name ): # type: ignore[no-untyped-def]
@@ -182,7 +183,7 @@ def test_install_runtime_instruments_requested_integrations(monkeypatch):
182183 class FakeWildEdge :
183184 SUPPORTED_INTEGRATIONS = {"onnx" , "torch" }
184185
185- def __init__ (self , * , dsn , app_version , debug ): # type: ignore[no-untyped-def]
186+ def __init__ (self , * , dsn , app_version , debug , sampling_interval_s = None ): # type: ignore[no-untyped-def]
186187 assert dsn == "https://secret@ingest.wildedge.dev/key"
187188 assert app_version == "2.0.0"
188189 assert debug is True
@@ -218,7 +219,7 @@ def test_install_runtime_strict_integrations_raises(monkeypatch):
218219 class FakeWildEdge :
219220 SUPPORTED_INTEGRATIONS = {"onnx" }
220221
221- def __init__ (self , * , dsn , app_version , debug ): # type: ignore[no-untyped-def]
222+ def __init__ (self , * , dsn , app_version , debug , sampling_interval_s = None ): # type: ignore[no-untyped-def]
222223 pass
223224
224225 def instrument (self , name ): # type: ignore[no-untyped-def]
@@ -330,8 +331,8 @@ def test_doctor_uses_project_key_for_default_namespace(monkeypatch, capsys):
330331 rc = cli .main (["doctor" , "--integrations" , "onnx" ])
331332 out = capsys .readouterr ().out
332333 assert rc == 0
333- assert "/ test-prod/ pending_queue" in out
334- assert "/ test-prod/ dead_letters" in out
334+ assert str ( Path ( " test-prod" ) / " pending_queue") in out
335+ assert str ( Path ( " test-prod" ) / " dead_letters") in out
335336
336337
337338def test_doctor_uses_app_identity_override_for_namespace (monkeypatch , capsys ):
@@ -342,8 +343,8 @@ def test_doctor_uses_app_identity_override_for_namespace(monkeypatch, capsys):
342343 rc = cli .main (["doctor" , "--integrations" , "onnx" ])
343344 out = capsys .readouterr ().out
344345 assert rc == 0
345- assert "/ my-app/ pending_queue" in out
346- assert "/ my-app/ dead_letters" in out
346+ assert str ( Path ( " my-app" ) / " pending_queue") in out
347+ assert str ( Path ( " my-app" ) / " dead_letters") in out
347348
348349
349350def test_runner_clears_runtime_env_when_no_propagate (monkeypatch ):
@@ -368,7 +369,7 @@ def shutdown(self): # type: ignore[no-untyped-def]
368369
369370def test_install_runtime_tracks_missing_dependency_status (monkeypatch ):
370371 class FakeWildEdge :
371- def __init__ (self , * , dsn , app_version , debug ): # type: ignore[no-untyped-def]
372+ def __init__ (self , * , dsn , app_version , debug , sampling_interval_s = None ): # type: ignore[no-untyped-def]
372373 pass
373374
374375 def instrument (self , name ): # type: ignore[no-untyped-def]
0 commit comments