Tideways.php
public static function setCustomVariable($name, $value)
    {
        if ((self::$mode & self::MODE_FULL) === 0 || !is_scalar($value)) {
            return;
        }

        if (!self::$currentRootSpan) {
            return;
        }

        self::$currentRootSpan->annotate(array($name => $value));
    }
public static function setCustomVariable($name, $value)
    {
        if ((self::$mode & self::MODE_FULL) === 0 || !is_scalar($value)) {
            return;
        }

        if (!self::$currentRootSpan) {
            return;
        }

        self::$currentRootSpan->annotate(array($name => $value));
    }
public static function setCustomVariable ( $ name , $ value ) { if ( ( self :: $ mode & self :: MODE_FULL ) === 0 || ! is_scalar ( $ value ) ) { return ; } if ( ! self :: $ currentRootSpan ) { return ; } self :: $ currentRootSpan -> annotate ( array ( $ name => $ value ) ) ; }
Add a custom variable to this profile.

Examples are the Request URL, UserId, Correlation Ids and more.

Please do *NOT* set private data in custom variables as this
data is not encrypted on our servers.

Only accepts scalar values.

The key 'url' is a magic value and should contain the request
url if you want to transmit it. The Profiler UI will specially
display it.

@param string $name
@param scalar $value
@return void
Add a custom variable to this profile .