Merge pull request #240 from topoteretes/COG-741-proxy-domain-change

refactor: Change proxy url to be to custom domain
This commit is contained in:
Igor Ilic 2024-12-02 15:36:46 +01:00 committed by GitHub
commit b0eb9af9c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,7 +17,7 @@ from uuid import uuid4
import pathlib
# Analytics Proxy Url, currently hosted by Vercel
vercel_url = "https://proxyanalytics.vercel.app"
proxy_url = "https://test.prometh.ai"
def get_anonymous_id():
"""Creates or reads a anonymous user id"""
@ -57,7 +57,7 @@ def send_telemetry(event_name: str, user_id, additional_properties: dict = {}):
},
}
response = requests.post(vercel_url, json=payload)
response = requests.post(proxy_url, json=payload)
if response.status_code != 200:
print(f"Error sending telemetry through proxy: {response.status_code}")