endSpan abstract method
Finishes a span with optional attributes.
Call this when the sub-operation completes.
The spanId must match a previously created span.
Returns Future<void> to allow for async repository operations.
Implementation
Future<void> endSpan({
required String spanId,
Map<String, String> attributes = const {},
});