Skip to content

Spans

Create Span
spans.create(SpanCreateParams**kwargs) -> Span
POST/spans
List Spans
spans.list(SpanListParams**kwargs) -> SpanListResponse
GET/spans
Partial Update Span
spans.update(strspan_id, SpanUpdateParams**kwargs) -> Span
PATCH/spans/{span_id}
Get Span
spans.retrieve(strspan_id) -> Span
GET/spans/{span_id}
ModelsExpand Collapse
class Span: …
id: str
name: str

Name that describes what operation this span represents

start_time: datetime

The time the span started

formatdate-time
trace_id: str

Unique identifier for the trace this span belongs to

data: Optional[Union[Dict[str, object], List[Dict[str, object]], null]]

Any additional metadata or context for the span

One of the following:
Dict[str, object]
List[Dict[str, object]]
end_time: Optional[datetime]

The time the span ended

formatdate-time
input: Optional[Union[Dict[str, object], List[Dict[str, object]], null]]

Input parameters or data for the operation

One of the following:
Dict[str, object]
List[Dict[str, object]]
output: Optional[Union[Dict[str, object], List[Dict[str, object]], null]]

Output data resulting from the operation

One of the following:
Dict[str, object]
List[Dict[str, object]]
parent_id: Optional[str]

ID of the parent span if this is a child span in a trace

task_id: Optional[str]

ID of the task this span belongs to

List[Span]
id: str
name: str

Name that describes what operation this span represents

start_time: datetime

The time the span started

formatdate-time
trace_id: str

Unique identifier for the trace this span belongs to

data: Optional[Union[Dict[str, object], List[Dict[str, object]], null]]

Any additional metadata or context for the span

One of the following:
Dict[str, object]
List[Dict[str, object]]
end_time: Optional[datetime]

The time the span ended

formatdate-time
input: Optional[Union[Dict[str, object], List[Dict[str, object]], null]]

Input parameters or data for the operation

One of the following:
Dict[str, object]
List[Dict[str, object]]
output: Optional[Union[Dict[str, object], List[Dict[str, object]], null]]

Output data resulting from the operation

One of the following:
Dict[str, object]
List[Dict[str, object]]
parent_id: Optional[str]

ID of the parent span if this is a child span in a trace

task_id: Optional[str]

ID of the task this span belongs to