Skip to main content

LogSpanOtherContent

Catch-all span content for any operation that doesn’t fit the predefined categories. Use this type when you need to log a step that isn’t an LLM call, embedding, tool execution, retrieval, guardrail, or custom function — for example, cache lookups, external API calls, queue operations, or any other custom workflow step.

Import

Type Definition

Properties

  • type - Discriminator field, always 'Other' for this content type
  • input - The operation input as a JSON string (JSON.stringify() of the input data)
  • output - The operation result as a JSON string (JSON.stringify() of the output data)
Both input and output must be valid, parseable JSON strings (the result of JSON.stringify()). Passing a plain string that isn’t valid JSON will cause the span to be rejected.

Example


  • LogSpanContent — union type that includes LogSpanOtherContent
  • Span — class that accepts LogSpanContent via span.update()