def mark_spans_as_done(
    log_ids: Optional[Union[int, List[int]]] = None,
    span_ids: Optional[Union[str, List[str]]] = None,
    *,
    project: Optional[str] = None,
    contexts: Optional[Union[str, List[str]]] = None,
):

source code

Marks all of the listed span ids for the listed logs in the listed contexts as completed. In all cases of this specification hierarchy, if none are provided then all associated spans are marked as complete.