trace
post/projects/{project_id}/spans

Request

  • Base URL
    https://api.galileo.ai
  • URL
    https://api.galileo.ai/projects/{project_id}/spans
  • Auth
    • API key in header Splunk-AO-API-Key
    • or API key in header Galileo-API-Key
    • or OAuth 2
      Password
      Token URL: https://api.galileo.ai/login
    • or HTTP basic

Path parameters

project_idstring uuid4 required

Request body

log_stream_idstring uuid4 nullable

Log stream id associated with the traces.

experiment_idstring uuid4 nullable

Experiment id associated with the traces.

metrics_testing_idstring uuid4 nullable

Metrics testing id associated with the traces.

logging_method'playground' | 'python_client' | 'typescript_client' | 'api_direct'
client_versionstring nullable
reliableboolean

Whether or not to use reliable logging. If set to False, the method will respond immediately before verifying that the traces have been successfully ingested, and no error message will be returned if ingestion fails. If set to True, the method will wait for the traces to be durably accepted or return an error message if there is an ingestion failure. On the streaming write path (kafka_metrics_pipeline) accepted means acknowledged by Kafka; the records become readable after the data-writer flush, about GALILEO_STREAMING_EXPECTED_LAG_SECONDS (default 2.5 s) later, so a read issued immediately after the response can miss them.

trace_idstring uuid4 required

Trace id associated with the spans.

parent_idstring uuid4 required

Parent trace or span id.

Example request

{
  "log_stream_id": "00000000-0000-0000-0000-000000000000",
  "parent_id": "11000011-0000-0000-0000-110000110000",
  "spans": [
    {
      "created_at": "2026-10-26T14:47:19.029701Z",
      "dataset_metadata": {},
      "input": "who is a smart LLM?",
      "metrics": {},
      "name": "",
      "output": "I am!",
      "spans": [
        {
          "created_at": "2026-10-26T14:47:19.017834Z",
          "dataset_metadata": {},
          "id": "22222222-2222-4222-a222-222222222222",
          "input": [
            {
              "content": "Question: who is a smart LLM?",
              "role": "user"
            }
          ],
          "metrics": {},
          "name": "",
          "output": {
            "content": "I am!",
            "role": "user"
          },
          "tags": [],
          "type": "llm",
          "user_metadata": {}
        }
      ],
      "tags": [],
      "type": "workflow",
      "user_metadata": {}
    }
  ],
  "trace_id": "11000011-0000-0000-0000-110000110000"
}

Response

Successful Response

log_stream_idstring uuid4 nullable

Log stream id associated with the traces.

experiment_idstring uuid4 nullable

Experiment id associated with the traces.

metrics_testing_idstring uuid4 nullable

Metrics testing id associated with the traces.

project_idstring uuid4 required

Project id associated with the traces.

project_namestring required

Project name associated with the traces.

session_idstring uuid4 nullable

Session id associated with the traces.

records_countinteger required

Total number of records ingested

trace_idstring uuid4 required

Trace id associated with the spans.

parent_idstring uuid4 required

Parent trace or span id.

Changes

    • info

      added the new retriever_call enum value to the request property ////////////////

    • info

      added the new retriever_call enum value to the request property ///////////////////

    • info

      added the new retriever_call enum value to the request property /////////////

    • info

      added the new retriever_call enum value to the request property ////////////////

    • info

      added the new retriever_call enum value to the request property /////////////

    • info

      added the new retriever_call enum value to the request property ////////////////

    • info

      added the new retriever_call enum value to the request property //////////

    • info

      added the new retriever_call enum value to the request property /////////////

    • info

      added the new retriever_call enum value to the request property /////////////

    • info

      added the new retriever_call enum value to the request property ////////////////

    • info

      added the new retriever_call enum value to the request property //////////

    • info

      added the new retriever_call enum value to the request property /////////////

    • info

      added the new retriever_call enum value to the request property //////////

    • info

      added the new retriever_call enum value to the request property /////////////

    • info

      added the new retriever_call enum value to the request property ///////

    • info

      added the new retriever_call enum value to the request property //////////

    • info

      added the new retriever_call enum value to the request property /////////////

    • info

      added the new retriever_call enum value to the request property ////////////////

    • info

      added the new retriever_call enum value to the request property //////////

    • info

      added the new retriever_call enum value to the request property /////////////

    • info

      added the new retriever_call enum value to the request property //////////

    • info

      added the new retriever_call enum value to the request property /////////////

    • info

      added the new retriever_call enum value to the request property ///////

    • info

      added the new retriever_call enum value to the request property //////////

    • info

      added the new retriever_call enum value to the request property //////////

    • info

      added the new retriever_call enum value to the request property /////////////

    • info

      added the new retriever_call enum value to the request property ///////

    • info

      added the new retriever_call enum value to the request property //////////

    • info

      added the new retriever_call enum value to the request property ///////

    • info

      added the new retriever_call enum value to the request property //////////

    • info

      added the new retriever_call enum value to the request property ////

    • info

      added the new retriever_call enum value to the request property ///////

    • info

      added the new session_call enum value to the request property ////////////////

    • info

      added the new session_call enum value to the request property ///////////////////

    • info

      added the new session_call enum value to the request property /////////////

    • info

      added the new session_call enum value to the request property ////////////////

    • info

      added the new session_call enum value to the request property /////////////

    • info

      added the new session_call enum value to the request property ////////////////

    • info

      added the new session_call enum value to the request property //////////

    • info

      added the new session_call enum value to the request property /////////////

    • info

      added the new session_call enum value to the request property /////////////

    • info

      added the new session_call enum value to the request property ////////////////

    • info

      added the new session_call enum value to the request property //////////

    • info

      added the new session_call enum value to the request property /////////////

    • info

      added the new session_call enum value to the request property //////////

    • info

      added the new session_call enum value to the request property /////////////

    • info

      added the new session_call enum value to the request property ///////

    • info

      added the new session_call enum value to the request property //////////

    • info

      added the new session_call enum value to the request property /////////////

    • info

      added the new session_call enum value to the request property ////////////////

    • info

      added the new session_call enum value to the request property //////////

    • info

      added the new session_call enum value to the request property /////////////

    • info

      added the new session_call enum value to the request property //////////

    • info

      added the new session_call enum value to the request property /////////////

    • info

      added the new session_call enum value to the request property ///////

    • info

      added the new session_call enum value to the request property //////////

    • info

      added the new session_call enum value to the request property //////////

    • info

      added the new session_call enum value to the request property /////////////

    • info

      added the new session_call enum value to the request property ///////

    • info

      added the new session_call enum value to the request property //////////

    • info

      added the new session_call enum value to the request property ///////

    • info

      added the new session_call enum value to the request property //////////

    • info

      added the new session_call enum value to the request property ////

    • info

      added the new session_call enum value to the request property ///////

    • info

      added the new trace_call enum value to the request property ////////////////

    • info

      added the new trace_call enum value to the request property ///////////////////

    • info

      added the new trace_call enum value to the request property /////////////

    • info

      added the new trace_call enum value to the request property ////////////////

    • info

      added the new trace_call enum value to the request property /////////////

    • info

      added the new trace_call enum value to the request property ////////////////

    • info

      added the new trace_call enum value to the request property //////////

    • info

      added the new trace_call enum value to the request property /////////////

    • info

      added the new trace_call enum value to the request property /////////////

    • info

      added the new trace_call enum value to the request property ////////////////

    • info

      added the new trace_call enum value to the request property //////////

    • info

      added the new trace_call enum value to the request property /////////////

    • info

      added the new trace_call enum value to the request property //////////

    • info

      added the new trace_call enum value to the request property /////////////

    • info

      added the new trace_call enum value to the request property ///////

    • info

      added the new trace_call enum value to the request property //////////

    • info

      added the new trace_call enum value to the request property /////////////

    • info

      added the new trace_call enum value to the request property ////////////////

    • info

      added the new trace_call enum value to the request property //////////

    • info

      added the new trace_call enum value to the request property /////////////

    • info

      added the new trace_call enum value to the request property //////////

    • info

      added the new trace_call enum value to the request property /////////////

    • info

      added the new trace_call enum value to the request property ///////

    • info

      added the new trace_call enum value to the request property //////////

    • info

      added the new trace_call enum value to the request property //////////

    • info

      added the new trace_call enum value to the request property /////////////

    • info

      added the new trace_call enum value to the request property ///////

    • info

      added the new trace_call enum value to the request property //////////

    • info

      added the new trace_call enum value to the request property ///////

    • info

      added the new trace_call enum value to the request property //////////

    • info

      added the new trace_call enum value to the request property ////

    • info

      added the new trace_call enum value to the request property ///////

    • info

      added http discriminator mapping keys to the / request property

    • info

      added http discriminator mapping keys to the //// request property

    • info

      added http discriminator mapping keys to the /////// request property

    • info

      added http discriminator mapping keys to the ////////// request property

    • info

      added http discriminator mapping keys to the ///////////// request property

    • info

      added http discriminator mapping keys to the ////////// request property

    • info

      added http discriminator mapping keys to the /////// request property

    • info

      added http discriminator mapping keys to the ////////// request property

    • info

      added http discriminator mapping keys to the /////// request property

    • info

      added http discriminator mapping keys to the //// request property

    • info

      added http discriminator mapping keys to the /////// request property

    • info

      added http discriminator mapping keys to the ////////// request property

    • info

      added http discriminator mapping keys to the /////// request property

    • info

      added http discriminator mapping keys to the //// request property

    • info

      added http discriminator mapping keys to the /////// request property

    • info

      added http discriminator mapping keys to the //// request property

    • info

      added to the / request property oneOf list

    • info

      added to the //// request property oneOf list

    • info

      added to the /////// request property oneOf list

    • info

      added to the ////////// request property oneOf list

    • info

      added to the ///////////// request property oneOf list

    • info

      added to the ////////// request property oneOf list

    • info

      added to the /////// request property oneOf list

    • info

      added to the ////////// request property oneOf list

    • info

      added to the /////// request property oneOf list

    • info

      added to the //// request property oneOf list

    • info

      added to the /////// request property oneOf list

    • info

      added to the ////////// request property oneOf list

    • info

      added to the /////// request property oneOf list

    • info

      added to the //// request property oneOf list

    • info

      added to the /////// request property oneOf list

    • info

      added to the //// request property oneOf list