@inheritdoc
(endTimestamp?: SpanTimeInput)
| 214 | |
| 215 | /** @inheritdoc */ |
| 216 | public end(endTimestamp?: SpanTimeInput): void { |
| 217 | // If already ended, skip |
| 218 | if (this._endTime) { |
| 219 | return; |
| 220 | } |
| 221 | |
| 222 | this._endTime = spanTimeInputToSeconds(endTimestamp); |
| 223 | logSpanEnd(this); |
| 224 | |
| 225 | this._onSpanEnded(); |
| 226 | } |
| 227 | |
| 228 | /** |
| 229 | * Get JSON representation of this span. |
nothing calls this directly
no test coverage detected