Add metrics around plugin calls