Issue with Logging Spans in Phoenix Client: Project Creation Error
Hi! I don't know if there is a bug, but since we have changed to use phoenix-client self hosted instead of the whole server in our container we had to change to the log_spans function as log_traces is not supported in the client and now that we are trying to log spans into non-existent projects, the project is not being created. It used to be created automatically whenever we chose a project identifier that didn't exist but now it returns an error
2025-10-06T13:16:10.9171691Z stderr F self.client.spans.log_spans(
2025-10-06T13:16:10.9171713Z stderr F ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
2025-10-06T13:16:10.9171733Z stderr F project_identifier=self.project, spans=self.trace_list
2025-10-06T13:16:10.9171754Z stderr F ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-10-06T13:16:10.9171987Z stderr F )
2025-10-06T13:16:10.9172010Z stderr F ^
2025-10-06T13:16:10.9172041Z stderr F File "/app/.venv/lib/python3.13/site-packages/phoenix/client/resources/spans/__init__.py", line 475, in log_spans
2025-10-06T13:16:10.9172064Z stderr F response.raise_for_status()
2025-10-06T13:16:10.9172085Z stderr F ~~~~~~~~~~~~~~~~~~~~~~~~~^^
2025-10-06T13:16:10.9172106Z stderr F File "/app/.venv/lib/python3.13/site-packages/httpx/_models.py", line 829, in raise_for_status
2025-10-06T13:16:10.9172309Z stderr F raise HTTPStatusError(message, request=request, response=self)
2025-10-06T13:16:10.9172350Z stderr F httpx.HTTPStatusError: Client error '404 Not Found' for url 'http://localhost/monitoring/v1/projects/executorai/spans'
2025-10-06T13:16:10.9172380Z stderr F For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404
Is it a problem on our end or is it a bug?
