end_span
End a previously started span and calculate its duration. The response includes the span name, elapsed time in milliseconds, and status.
Instructions
Close an open span. Computes duration from start_ms to now.
Args:
span_id: The span_id returned by start_span().
status: 'ok' | 'error'. Default: 'ok'.
error: Error message if status='error'. Optional.
Returns a summary line: '{name} — {duration_ms}ms [{status}]'Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| span_id | Yes | ||
| status | No | ok | |
| error | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |