endSpan abstract method

Future<void> endSpan({
  1. required String spanId,
  2. Map<String, String> attributes = const {},
})

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 {},
});