Spans

Search spans

Search spans

post/v1/private/spans/search

Request body

trace_idstring uuid
project_namestring
project_idstring uuid
type'general' | 'tool' | 'llm' | 'guardrail'
limitinteger

Max number of spans to be streamed

last_retrieved_idstring uuid
truncateboolean

Truncate image included in either input, output or metadata

excludestring[]

Fields to exclude from the response

from_timestring date-time

Filter spans created from this time (ISO-8601 format).

to_timestring date-time

Filter spans created up to this time (ISO-8601 format). If not provided, defaults to current time. Must be after 'from_time'.

Changes

Changed in 5 of the 58 revisions of this API.369

    • added the new evaluator enum value to the items/anyOf[Span_Public]/source response property for the response status 200

      response-property-enum-value-added

    • added the optional property items/anyOf[Span_Public]/feedback_scores/items/value_by_author/additionalProperties/author to the response with the 200 status

      response-optional-property-added

    • added the optional property items/anyOf[Span_Public]/feedback_scores/items/value_by_author/additionalProperties/source_queue_id to the response with the 200 status

      response-optional-property-added

    • added the optional property items/anyOf[Span_Public]/comments/items/source_queue_id to the response with the 200 status

      response-optional-property-added

    • added the optional property items/anyOf[Span_Public]/feedback_scores/items/source_queue_id to the response with the 200 status

      response-optional-property-added

    • added the new environment enum value to the request property exclude/items/

      request-property-enum-value-added

    • added the new in enum value to the request property filters/items/operator

      request-property-enum-value-added

    • added the new not_in enum value to the request property filters/items/operator

      request-property-enum-value-added

    • added the optional property items/anyOf[Span_Public]/environment to the response with the 200 status

      response-optional-property-added

  • d606e84c75e4351See the full diff
    • removed the enum value environment of the request property exclude/items/

      request-property-enum-value-removed

    • removed the enum value in of the request property filters/items/operator

      request-property-enum-value-removed

    • removed the enum value not_in of the request property filters/items/operator

      request-property-enum-value-removed

    • removed the optional property items/anyOf[Span_Public]/comments/items/source_queue_id from the response with the 200 status

      response-optional-property-removed

    • removed the optional property items/anyOf[Span_Public]/environment from the response with the 200 status

      response-optional-property-removed

    • removed the optional property items/anyOf[Span_Public]/feedback_scores/items/source_queue_id from the response with the 200 status

      response-optional-property-removed

    • removed the optional property items/anyOf[Span_Public]/feedback_scores/items/value_by_author/additionalProperties/author from the response with the 200 status

      response-optional-property-removed

    • removed the optional property items/anyOf[Span_Public]/feedback_scores/items/value_by_author/additionalProperties/source_queue_id from the response with the 200 status

      response-optional-property-removed

    • removed the evaluator enum value from the items/anyOf[Span_Public]/source response property for the response status 200

      response-property-enum-value-removed

    This revision also has 40 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog