write right and Content-Type: application/json, also with no body.
Delete traces
POST /v1/traces/delete takes exactly one of these fields.
Every trace that
/v1/traces/find gives for this trace filter. A filter with no condition gets 400: it matches every trace.Segments (files) of the store that still hold the bytes of deleted data, from this delete or earlier ones.
0: no file holds them.- The answer comes after the commit. From then on no route gives the data. A crash leaves the store before the delete or after it.
- A span that arrives after the delete stays, also a span of the same user.
- With tenants, a delete works in the store of the request’s tenant only. A tenant with no store gets
404. - A filter whose text is over the word limit of
containsandprefixgets400. The server checks this at the call and again when the delete runs. Nothing is deleted, the store takes requests as before, and no later start of the server runs that delete.
Purge deleted data
The bytes of deleted spans stay in the files of the store until the server writes those files again.POST /v1/purge writes them again now, and answers when it is done. On a large store that takes minutes: give the client a long timeout. It takes no body.
Data lifecycle
Retention, deletes and purges in production.
Filters
Every field of a trace filter.