def test_client_custom_endpoint():
    """Test client initialization with custom endpoint"""
    client = Client(api_key="test-key", app_name="test-app", api_endpoint="https://custom.endpoint.com")

    assert client.api_endpoint == "https://custom.endpoint.com"
    assert client._http.base_url == "https://custom.endpoint.com"
Test client initialization with custom endpoint
packages/traceloop-sdk/tests/test_client.py