is_ended: Check if span is ended.
This is a method of the Span class in the trace module.
def is_ended(&self) -> bool