1616from telemetric .statswrapper import stats_deco
1717
1818logging .basicConfig (level = logging .DEBUG )
19+ PROXY_URL = ""
1920
2021
2122# Create some test functions with statistics
@@ -70,7 +71,7 @@ def simple_func(value):
7071# Test 1: Basic usage with default settings
7172print ("=== Test 1: Basic Usage ===" )
7273uploader_basic = StatsUploader (
73- proxy_url = "https://analytics-proxy-production-665e.up.railway.app"
74+ proxy_url = PROXY_URL
7475)
7576print (f"Analytics client enabled: { uploader_basic .analytics .enabled } " )
7677print (f"Client ID: { uploader_basic .analytics .client_id } " )
@@ -82,7 +83,7 @@ def simple_func(value):
8283print ("\n === Test 2: Enhanced Configuration ===" )
8384try :
8485 uploader_enhanced = StatsUploader ( # type: ignore[call-arg]
85- proxy_url = "https://analytics-proxy-production-665e.up.railway.app" ,
86+ proxy_url = PROXY_URL ,
8687 client_id = "test-client-12345" ,
8788 timeout = 5.0 ,
8889 max_retries = 2 ,
@@ -140,7 +141,7 @@ def simple_func(value):
140141print ("\n === Test 6: Context Manager Usage ===" )
141142try :
142143 with StatsUploader ( # type: ignore[call-arg,attr-defined]
143- proxy_url = "https://telemetric-production.up.railway.app" ,
144+ proxy_url = PROXY_URL ,
144145 client_id = "context-manager-test" ,
145146 max_retries = 1 ,
146147 ) as uploader_ctx :
@@ -159,7 +160,7 @@ def simple_func(value):
159160print ("\n === Test 7: Disabled Telemetry ===" )
160161try :
161162 uploader_disabled = StatsUploader ( # type: ignore[call-arg]
162- proxy_url = "https://analytics-proxy-production-665e.up.railway.app" ,
163+ proxy_url = PROXY_URL ,
163164 enabled = False ,
164165 )
165166 print (f"Telemetry enabled: { uploader_disabled .analytics .enabled } " )
0 commit comments