src/ClientSideMonitoring/ApiCallMonitoringMiddleware.php
public static function wrap(
        callable $credentialProvider,
        $options,
        $region,
        $service
    ) {
        return function (callable $handler) use (
            $credentialProvider,
            $options,
            $region,
            $service
        ) {
            return new static(
                $handler,
                $credentialProvider,
                $options,
                $region,
                $service
            );
        };
    }
public static function wrap(
        callable $credentialProvider,
        $options,
        $region,
        $service
    ) {
        return function (callable $handler) use (
            $credentialProvider,
            $options,
            $region,
            $service
        ) {
            return new static(
                $handler,
                $credentialProvider,
                $options,
                $region,
                $service
            );
        };
    }
public static function wrap ( callable $ credentialProvider , $ options , $ region , $ service ) { return function ( callable $ handler ) use ( $ credentialProvider , $ options , $ region , $ service ) { return new static ( $ handler , $ credentialProvider , $ options , $ region , $ service ) ; } ; }
Standard middleware wrapper function with CSM options passed in.

@param callable $credentialProvider
@param mixed  $options
@param string $region
@param string $service
@return callable
Standard middleware wrapper function with CSM options passed in .