cURL
Tracing
End Trace
ViewSet for Trace operations.
IMPORTANT — Memory safety: Traces can have hundreds of spans, each with metadata containing base64 screenshots (1MB+). Never use TraceSerializer or prefetch_related(“spans”) here — that eagerly loads ALL span data and WILL OOM on 2GB instances.
Safe patterns:
- list: TraceListSerializer (no spans, just trace metadata + annotated count)
- retrieve: SpanTreeSerializer with .only() (minimal columns, no metadata)
- create/end: TraceDetailSerializer (no spans at all)
- Individual span detail: fetched separately via SpanViewSet
POST
cURL
Authorizations
Token-based authentication with required prefix "Token"
Path Parameters
A UUID string identifying this trace.
Body
Response
200 - application/json