@@ -19,7 +19,7 @@ def test_configures_exporter_with_correct_endpoint(
1919 ):
2020 PostHogSpanProcessor (api_key = "phc_test123" )
2121 mock_otlp_cls .assert_called_once_with (
22- endpoint = "https://us.i.posthog.com/v1/traces " ,
22+ endpoint = "https://us.i.posthog.com/i/v0/ai/otel " ,
2323 headers = {"Authorization" : "Bearer phc_test123" },
2424 )
2525 mock_batch_cls .assert_called_once_with (mock_otlp_cls .return_value )
@@ -29,7 +29,7 @@ def test_configures_exporter_with_correct_endpoint(
2929 def test_configures_custom_host (self , mock_batch_cls , mock_otlp_cls ):
3030 PostHogSpanProcessor (api_key = "phc_test" , host = "https://eu.i.posthog.com" )
3131 mock_otlp_cls .assert_called_once_with (
32- endpoint = "https://eu.i.posthog.com/v1/traces " ,
32+ endpoint = "https://eu.i.posthog.com/i/v0/ai/otel " ,
3333 headers = {"Authorization" : "Bearer phc_test" },
3434 )
3535
@@ -38,7 +38,7 @@ def test_configures_custom_host(self, mock_batch_cls, mock_otlp_cls):
3838 def test_strips_trailing_slash_from_host (self , mock_batch_cls , mock_otlp_cls ):
3939 PostHogSpanProcessor (api_key = "phc_test" , host = "https://us.i.posthog.com/" )
4040 mock_otlp_cls .assert_called_once_with (
41- endpoint = "https://us.i.posthog.com/v1/traces " ,
41+ endpoint = "https://us.i.posthog.com/i/v0/ai/otel " ,
4242 headers = {"Authorization" : "Bearer phc_test" },
4343 )
4444
0 commit comments