node_modules/opentracing/src/span.js
/**
     * Sets the end timestamp and finalizes Span state.
     *
     * With the exception of calls to Span.context() (which are always allowed),
     * finish() must be the last call made to any span instance, and to do
     * otherwise leads to undefined behavior.
     *
     * @param  {number} finishTime
     *         Optional finish time in milliseconds as a Unix timestamp. Decimal
     *         values are supported for timestamps with sub-millisecond accuracy.
     *         If not specified, the current time (as defined by the
     *         implementation) will be used.
     */
Sets the end timestamp and finalizes Span state.
With the exception of calls to Span.context() (which are always allowed),
finish() must be the last call made to any span instance, and to do
otherwise leads to undefined behavior.

@param  {number} finishTime
Optional finish time in milliseconds as a Unix timestamp. Decimal
values are supported for timestamps with sub-millisecond accuracy.
If not specified, the current time (as defined by the
implementation) will be used.
Sets the end timestamp and finalizes Span state . With the exception of calls to Span . context () ( which are always allowed ) finish () must be the last call made to any span instance and to do otherwise leads to undefined behavior . @param { number } finishTime Optional finish time in milliseconds as a Unix timestamp . Decimal values are supported for timestamps with sub - millisecond accuracy . If not specified the current time ( as defined by the implementation ) will be used .
finish(finishTime) {
        if (process.env.NODE_ENV === 'debug') {
            if (arguments.length > 1) {
                throw new Error('Invalid arguments');
            }
            if (arguments.length === 1 && typeof finishTime !== 'number') {
                throw new Error('Unexpected argument type');
            }
        }
        this._finish(finishTime);
    }
finish ( finishTime ) { if ( process . env . NODE_ENV === 'debug' ) { if ( arguments . length > 1 ) { throw new Error ( 'Invalid arguments' ) ; } if ( arguments . length === 1 && typeof finishTime !== 'number' ) { throw new Error ( 'Unexpected argument type' ) ; } } this . _finish ( finishTime ) ; }
Sets the end timestamp and finalizes Span state.
Sets the end timestamp and finalizes Span state .
// Debug-only runtime checks on the arguments // Do not return `this`. The Span generally should not be used after it // is finished so chaining is not desired in this context.