SpanStack
class SpanStack
A simple stack data structure to manage Span
objects, allowing push, pop, and peek operations. Provides functionalities to add a new span to the stack, remove the most recently added span, or view it without removing.