MCPcopy Create free account
hub / github.com/getsentry/sentry-javascript / end

Method end

packages/core/src/tracing/sentrySpan.ts:216–226  ·  view source on GitHub ↗

@inheritdoc

(endTimestamp?: SpanTimeInput)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 3

_onSpanEndedMethod · 0.95
spanTimeInputToSecondsFunction · 0.90
logSpanEndFunction · 0.90

Tested by

no test coverage detected