Tideways.php
public static function createSpan($name)
    {
        return (self::$mode & self::MODE_TRACING) > 0
            ? self::$currentRootSpan->createSpan($name)
            : new \Tideways\Traces\NullSpan();
    }
public static function createSpan($name)
    {
        return (self::$mode & self::MODE_TRACING) > 0
            ? self::$currentRootSpan->createSpan($name)
            : new \Tideways\Traces\NullSpan();
    }
public static function createSpan ( $ name ) { return ( self :: $ mode & self :: MODE_TRACING ) > 0 ? self :: $ currentRootSpan -> createSpan ( $ name ) : new \ Tideways \ Traces \ NullSpan ( ) ; }
Create a new trace span with the given category name.

@example

$span = \Tideways\Profiler::createSpan('sql');

@return \Tideways\Traces\Span
Create a new trace span with the given category name .