Skip to main content

LogSpanOtherContent

Catch-all content type for any operation that does not fit the other span categories.

Overview

LogSpanOtherContent is a general-purpose span type for operations that don’t map to Model, ModelStream, Embeddings, Function, Tool, Guardrail, or Retrieval. It is wrapped in a LogSpanContent union via the actual_instance pattern.

Fields

type
str
required
Must be "Other".
input
str
required
The input payload as a JSON string. Must be valid, parseable JSON (the result of json.dumps()).
output
str
required
The output payload as a JSON string. Must be valid, parseable JSON (the result of json.dumps()).

Construction Pattern

All span content is wrapped in LogSpanContent using the actual_instance parameter:

Example